Created
September 26, 2023 02:49
-
-
Save byaruhaf/83a0caf08a2d43fcd1336c62373224d5 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 isPresented = false | |
var body: some View { | |
Button("Present!") { | |
isPresented.toggle() | |
} | |
.fullScreenCover(isPresented: $isPresented, content: FullScreenView.init) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment