Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
@State private var showModal = false
var body: some View {
Button(action: { self.showModal.toggle() }) {
HStack {
Text("Show MODAL")
Spacer()
Text("〉")
}
}.sheet(isPresented: $showModal) {
Text("YAY MODAL")
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment