<!--
{
  "availability" : [
    "iOS: 27.1.0 -",
    "iPadOS: 27.1.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/View/splitArrangementLayoutRatio(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI4ViewPAAE27splitArrangementLayoutRatioyQr14CoreFoundation7CGFloatVSgF"
  },
  "title" : "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.

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

## Parameters

`ratio`

The ratio the view uses for its preferred size.

## 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))
```

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)