Created
April 17, 2024 15:40
-
-
Save apatronl/101191e14018d34c17b8070cb1f44d03 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
struct ContentView: View { | |
@State private var showAlert: Bool = false | |
var body: some View { | |
Button("Show alert") { | |
showAlert = true | |
}.alert("Hello!", isPresented: $showAlert, actions: {}) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment