<!--
{
  "availability" : [
    "iOS: 17.2.0 -",
    "iPadOS: 17.2.0 -",
    "macOS: 26.4.0 -",
    "visionOS: 26.4.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "ManagedAppDistribution",
  "identifier" : "/documentation/ManagedAppDistribution/ManagedContentView/init(primaryLabel:secondaryLabel:tertiaryLabel:quaternaryLabel:offerState:offerAction:icon:)-8l3xw",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "ManagedAppDistribution",
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:31_ManagedAppDistribution_SwiftUI0A11ContentViewV12primaryLabel09secondaryI008tertiaryI0010quaternaryI010offerState0M6Action4iconACyxGSy_p_Sy_pSy_pSy_pAA0af5OfferN0VyAMcxyXEtcfc"
  },
  "title" : "init(primaryLabel:secondaryLabel:tertiaryLabel:quaternaryLabel:offerState:offerAction:icon:)"
}
-->

# init(primaryLabel:secondaryLabel:tertiaryLabel:quaternaryLabel:offerState:offerAction:icon:)

Create a content view with the layout of a managed app view and customized labels using strings.

```
@MainActor init(primaryLabel: any StringProtocol, secondaryLabel: any StringProtocol = "", tertiaryLabel: any StringProtocol = "", quaternaryLabel: any StringProtocol = "", offerState: ManagedContentOfferState, offerAction: @escaping (ManagedContentOfferState) -> Void, @ViewBuilder icon: () -> Icon)
```

## Parameters

`primaryLabel`

The string for primary label.

`secondaryLabel`

The string for secondary label.

`tertiaryLabel`

The string for tertiary label.

`quaternaryLabel`

The string for quaternary label.

`offerState`

The view’s offer state.

`offerAction`

The action to execute when a person taps the offer button.

`icon`

A view that represents the icon for this managed content.

---

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)