<!--
{
  "availability" : [
    "iOS: 27.1.0 -",
    "iPadOS: 27.1.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/SplitArrangementViewStyle/axes(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI25SplitArrangementViewStyleV4axesyAcA4AxisO3SetVF"
  },
  "title" : "axes(_:)"
}
-->

# axes(_:)

Creates a split arrangement that supports the given axes.

```
nonisolated func axes(_ axes: Axis.Set) -> SplitArrangementViewStyle
```

## Parameters

`axes`

The supported axes the view can split to.

## Discussion

For example, you could make a split arrangement which will only split its
views into a vertical split layout using the `vertical` axis.

```
ArrangementView {
    PrimaryContent()
} secondary: {
    SecondaryContent()
}
.arrangementViewStyle(.split.axes(.vertical))
```

---

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)