SwiftUI Advent Calendar Open

iPhone Duo SwiftUI examples

Explore SwiftUI APIs, components, and modifiers on iPhone Duo. Compare portrait and landscape layouts in closed, partially open, and fully open states, with 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 iPhone Duo screenshot for Inspector.

6 views