---
title: "init(content:modifier:)"
framework: swiftui
role: symbol
role_heading: Initializer
path: "swiftui/modifiedcontent/init(content:modifier:)"
---

# init(content:modifier:)

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

## Declaration

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

## Parameters

- `content`: The content that the modifier changes.
- `modifier`: The modifier to apply to the content.

## Discussion

Discussion If content is a View and modifier is a ViewModifier, the result is a View. If content and modifier are both view modifiers, then the result is a new ViewModifier combining them.

## See Also

### Creating a modified content view

- [content](swiftui/modifiedcontent/content.md)
- [modifier](swiftui/modifiedcontent/modifier.md)
