Post

Replies

Boosts

Views

Activity

Comment on How we can use alert menu before delete list items in SwiftUI?
@Claude31, I am app like that but it is not work, ` Button(action: {   showingAlert = true }) { Text("delete") }   .alert(isPresented:$showingAlert) {                     Alert(                       title: Text("Are you sure you want to delete this?"),                       message: Text("There is no undo"),                       primaryButton: .destructive(Text("Delete")) {                      self.delete(item: data)                       },                       secondaryButton: .cancel()                     )                   }`
Feb ’22