---
title: "splitArrangementLayoutRatio(_:)"
framework: SwiftUI
role: symbol
role_heading: Instance Method
platforms: [iOS 27.1+, iPadOS 27.1+]
path: "swiftui/view/splitarrangementlayoutratio(_:)"
---

# splitArrangementLayoutRatio(_:)

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.

## Declaration

```swift
nonisolated func splitArrangementLayoutRatio(_ ratio: CGFloat?) -> some View

```

## Parameters

- `ratio`: The ratio the view uses for its preferred size.

## Discussion

Discussion The view with the highest layoutPriority will be sized first using its ratio. When a ratio is used on a view that would be greater than the remaining size of the arrangement view container, the remaining size will be used. When a ratio of a view would result in the views of the container not filling its total size, the highest priority view will fill the remaining size of the container. ArrangementView {     ConversationView()         .splitArrangementLayoutRatio(0.3) } secondary: {     PhotosView() } .arrangementViewStyle(.split.axes(.horizontal))

## See Also

### Dynamically arranging a primary and secondary view

- [ArrangementView](swiftui/arrangementview.md)
- [arrangementViewStyle(_:)](swiftui/view/arrangementviewstyle(_:).md)
- [ArrangementViewStyle](swiftui/arrangementviewstyle.md)
- [overlayArrangementEdge(_:)](swiftui/view/overlayarrangementedge(_:).md)
- [splitArrangementFixedLayoutSize(horizontal:vertical:)](swiftui/view/splitarrangementfixedlayoutsize(horizontal:vertical:).md)
- [splitArrangementLayoutRatio(minHorizontal:idealHorizontal:maxHorizontal:minVertical:idealVertical:maxVertical:)](swiftui/view/splitarrangementlayoutratio(minhorizontal:idealhorizontal:maxhorizontal:minvertical:idealvertical:maxvertical:).md)
- [splitArrangementLayoutSize(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:)](swiftui/view/splitarrangementlayoutsize(minwidth:idealwidth:maxwidth:minheight:idealheight:maxheight:).md)
