` 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() } )
}
}
}`
Post
Replies
Boosts
Views
Activity
Hallo, I would like to change the Color of my Menu includes the Buttons inside. How can I do this?
NavigationView{
Text("")
.toolbar{
ToolbarItem(){
Menu("Menu"){
Button("Reset Count", action: {self.count = 0})
Menu("Cars"){
Button("Car 1", action: {self.image = "car"})
Button("Car 2", action: {self.image = "car2"})
}
}
}
}
}`