Initializer

init(content:modifier:)

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

Declaration 宣言

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 修正されたコンテンツビューを作成する