Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SWIFT

alert swiftUI

@State private var showingAlert = false

Button("Show Alert") {
            showingAlert = true
        }
        .alert("Important message", isPresented: $showingAlert) {
            Button("OK", role: .cancel) { }
        }
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #alert #swiftUI
ADD COMMENT
Topic
Name
1+3 =