Contents

init(content:modifier:)

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

Declaration

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