SwiftUI Advent Calendar Open

iPad SwiftUI layouts

Explore SwiftUI APIs, components, and modifiers with interactive iPad previews, Swift code, and Apple documentation.

@State private var showInspector = true

var body: some View {
    Text("Foo")
        .inspector(isPresented: $showInspector) {
            Text("Bar")
        }
}
iOS 17.0+ iPadOS 17.0+ macOS 14.0+

Every available iPad screenshot for Inspector.

2 views