Instance Method

body(content:)

Gets the current body of the caller.

Required. Default implementation provided.

Declaration

func body(content: Self.Content) -> Self.Body

Discussion

content is a proxy for the view that will have the modifier represented by Self applied to it.

Default Implementations

ViewModifier Implementations

func body(content: Self.Content) -> Self.Body

Returns the current body of self. content is a proxy for the view that will have the modifier represented by Self applied to it.

See Also

Getting the Body

typealias ViewModifier.Content

The content view type.

associatedtype Body

The type of view representing the body.

Required.