Swiftui Actionsheet

[Solved] Swiftui Actionsheet | Swift - Code Explorer | yomemimo.com
Question : swiftui actionsheet

Answered by : quaint-quail-rblyi6q3wthz

.actionSheet(isPresented: $showingActionSheet) { ActionSheet(title: Text("Change background"), message: Text("Select a new color"), buttons: [ .default(Text("Red")) { self.backgroundColor = .red }, .default(Text("Green")) { self.backgroundColor = .green }, .default(Text("Blue")) { self.backgroundColor = .blue }, .cancel() ])
}

Source : https://www.hackingwithswift.com/books/ios-swiftui/showing-multiple-options-with-actionsheet | Last Update : Sat, 24 Oct 20

Answers related to swiftui actionsheet

Code Explorer Popular Question For Swift