---
title: "init(primaryLabel:secondaryLabel:tertiaryLabel:quaternaryLabel:offerState:offerAction:icon:)"
framework: managedappdistribution
role: symbol
role_heading: Initializer
path: "managedappdistribution/managedcontentview/init(primarylabel:secondarylabel:tertiarylabel:quaternarylabel:offerstate:offeraction:icon:)-8l3xw"
---

# 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.

## Declaration

```swift
@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.

## See Also

### Creating views

- [init(primaryLabel:secondaryLabel:tertiaryLabel:quaternaryLabel:offerState:offerAction:icon:)](managedappdistribution/managedcontentview/init(primarylabel:secondarylabel:tertiarylabel:quaternarylabel:offerstate:offeraction:icon:)-4blv1.md)
