Sheet Placement
Sets the placement of a presentation within the presenting view. This may fall back to center on small screens.
Platform Compatibility
Tags
SwiftUI Code
@State var showSheet = true
var body: some View {
Text("Foo")
.sheet(isPresented: $showSheet) {
sheetContent
.presentationPlacement(.leading)
}
}