<!--
{
  "availability" : [
    "iOS: 27.1.0 -",
    "iPadOS: 27.1.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/View/splitArrangementFixedLayoutSize(horizontal:vertical:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI4ViewPAAE31splitArrangementFixedLayoutSize10horizontal8verticalQrSb_SbtF"
  },
  "title" : "splitArrangementFixedLayoutSize(horizontal:vertical:)"
}
-->

# splitArrangementFixedLayoutSize(horizontal:vertical:)

Sets the preferred size constraint for an arrangement view in a split
style to the ideal size of the view within its container. The
arrangement view will prefer this size, but may resize to a smaller
size depending on the priority of the view.

```
nonisolated func splitArrangementFixedLayoutSize(horizontal: Bool = true, vertical: Bool = true) -> some View
```

## Parameters

`horizontal`

Whether to prefer a fixed width for the view
in a horizontal split.

`vertical`

Whether to prefer a fixed height for the view
in a vertical split.

## Discussion

```
ArrangementView {
    ChartView()
        .splitArrangementFixedLayoutSize(horizontal: true, vertical: false)
} secondary: {
    NewsView()
}
.arrangementViewStyle(.split)
```

---

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)