Structure

AnyView

A type-erased View.

Declaration

@frozen struct AnyView

Overview

An AnyView allows changing the type of view used in a given view hierarchy. Whenever the type of view used with an AnyView changes, the old hierarchy is destroyed and a new hierarchy is created for the new type.

Topics

Creating a View

init<V>(V)

Create an instance that type-erases view.

Applying Standard Modifiers

View Modifiers

Configure this view and the views it contains by applying standard modifiers.

Relationships

Conforms To

See Also

Infrequently Used Views

struct TupleView

A View created from a swift tuple of View values.