iPad SwiftUI layouts
Explore SwiftUI APIs, components, and modifiers with interactive iPad previews, Swift code, and Apple documentation.
24elements
Sheet
Sheet Placement
Sets the placement of a presentation within the presenting view. This may fall back to center on small screens.
Explore Sheet Placement on iPad in portrait and landscape, with SwiftUI code and Apple API documentation.
SwiftUI code
@State var showSheet = true
var body: some View {
Text("Foo")
.sheet(isPresented: $showSheet) {
sheetContent
.presentationPlacement(.leading)
}
}Compatibility
iOS 27.0+ iPadOS 27.0+ macOS 27.0+ watchOS 27.0+ tvOS 27.0+ visionOS 27.0+
Tags
Found an issue or have a suggestion?
All variants
Every available iPad screenshot for Sheet Placement.