iPad SwiftUI layouts
Explore SwiftUI APIs, components, and modifiers with interactive iPad previews, Swift code, and Apple documentation.
24elements
Sheet
Fitted Sheet Sizing
Sets the sizing of the containing presentation. This does not have any effect on smaller devices like iPhone and Apple Watch. On macOS, fitted is the default.
Explore Fitted Sheet Sizing on iPad in landscape, with SwiftUI code and Apple API documentation.
SwiftUI code
@State var showSheet = true
var body: some View {
Text("Foo")
.sheet(isPresented: $showSheet) {
sheetContent
.presentationSizing(.fitted)
}
}Compatibility
iOS 18.0+ iPadOS 18.0+ macOS 15.0+ watchOS 11.0+ tvOS 18.0+ visionOS 1.0+
Tags
Found an issue or have a suggestion?
All variants
Every available iPad screenshot for Fitted Sheet Sizing.