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

Split Arrangement Layout Ratio

Sets the preferred size ratio for an arrangement view in a split style. Use this modifier when you want to customize the size of the view compared to its other views in the split layout.

Explore Split Arrangement Layout Ratio 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
} secondary: {
    Color.orange
        .splitArrangementLayoutRatio(0.24)
}
iOS 27.1+ iPadOS 27.1+

Every available iPhone Duo screenshot for Split Arrangement Layout Ratio.

6 views