Last active
June 9, 2022 09:14
-
-
Save meyusufdemirci/5fd3952efb59fe4fadf02884b03dc96e to your computer and use it in GitHub Desktop.
What is New in SwiftUI, WWDC 22 Article
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
@State var isPresentedHalfSheet: Bool = false | |
var body: some View { | |
Button { | |
self.isPresentedHalfSheet.toggle() | |
} label: { | |
Text("Present half sheet") | |
} | |
.sheet(isPresented: $isPresentedHalfSheet) { | |
HalfSheetView() | |
.presentationDetents([.medium, .large]) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment