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.

ArrangementView

Overlay Arrangement Edge

The horizontal edge a view in an overlay arrangement occupies when the arrangement transitions to a horizontal layout. In this case, the primary view overlays the secondary view at the trailing edge when the screen is partially open in landscape.

Explore Overlay Arrangement Edge on iPhone Duo in portrait and landscape across closed, partially open, and fully open states, with SwiftUI code and Apple API documentation.

ArrangementView {
    Color.blue
        .frame(width: 210, height: 210)
        .overlayArrangementEdge(.trailing)
} secondary: {
    Color.orange
}
.arrangementViewStyle(.overlay)
iOS 27.1+ iPadOS 27.1+

Every available iPhone Duo screenshot for Overlay Arrangement Edge.

6 views