Home > AI > IOS > SwiftUI >

.alert

Click the button to show alert

Button("phone") {
    showPhoneAlert = true
}.alert(isPresented: $showPhoneAlert) {
    Alert(title: Text("Phone is not binded"))
}

Leave a Reply