Protocol

ViewModifier

A modifier that you apply to a view or another view modifier, producing a different version of the original value.

Declaration

protocol ViewModifier

Topics

Getting the Body

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

Gets the current body of the caller.

Required. Default implementation provided.

typealias ViewModifier.Content

The content view type.

associatedtype Body

The type of view representing the body.

Required.

Supporting Types

struct EmptyModifier

The empty, or identity, modifier.

Relationships

Conforming Types

ModifiedContent

See Also

Supporting Types

struct ViewBuilder

A custom parameter attribute that constructs views from closures.

Beta

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software