<!--
{
  "availability" : [
    "iOS: 27.1.0 -",
    "iPadOS: 27.1.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/ArrangementView/init(primary:secondary:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI15ArrangementViewV7primary9secondaryACyxq_GxyXE_q_yXEtcfc"
  },
  "title" : "init(primary:secondary:)"
}
-->

# init(primary:secondary:)

Creates an arrangement view with a primary and secondary view.

```
nonisolated init(@ContentBuilder primary: () -> Primary, @ContentBuilder secondary: () -> Secondary)
```

## Parameters

`primary`

The view to display as the primary content in
the arrangement.

`secondary`

The view to display as the secondary content in
the arrangement.

---

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)