Body

The type of view representing the body of the view.

Required.

Declaration

associatedtype Body : View

Discussion

When you create a custom view, Swift infers this type from your implementation of the required body property.

See Also

Inspecting Views

func id<ID>(ID) -> View

Generates a uniquely identified view that can be inserted or removed.

func equatable() -> EquatableView<Self>

Prevents the view from updating its child view when its new value is the same as its old value.