<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.15.0 -",
    "tvOS: 13.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 6.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/ModifiedContent/init(content:modifier:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI15ModifiedContentV7content8modifierACyxq_Gx_q_tcfc"
  },
  "title" : "init(content:modifier:)"
}
-->

# init(content:modifier:)

A structure that defines the content and modifier needed to produce
a new view or view modifier.

```
nonisolated init(content: Content, modifier: Modifier)
```

## Parameters

`content`

The content that the modifier changes.

`modifier`

The modifier to apply to the content.

## Discussion

If `content` is a [`View`](/documentation/SwiftUI/View) and `modifier` is a [`ViewModifier`](/documentation/SwiftUI/ViewModifier), the
result is a [`View`](/documentation/SwiftUI/View). If `content` and `modifier` are both view
modifiers, then the result is a new [`ViewModifier`](/documentation/SwiftUI/ViewModifier) combining them.

---

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)