Trailing closure passed to parameter of type 'ToolbarDefaultItemKind?' that does not accept a closure

` var body: some View {

    NavigationView{
        Text("")
            .toolbar(){
                .frame(Alignment:.top)
                Menu("Menu") {
                    Menu("Cars"){
                        Button("Car 1", action: {self.image = "car"})
                        Button("Car 2", action: {self.image = "car2"})
                    }
                    Button("Reset Count", action: {self.count = 0})
                    Button("Count -1", action: {minusCount() } )
                }
            }
    }`
Answered by _DerRobin_ in 775617022

Ok is fixed meanwhile thank you!

Accepted Answer

Ok is fixed meanwhile thank you!

Trailing closure passed to parameter of type 'ToolbarDefaultItemKind?' that does not accept a closure
 
 
Q