Instance Method

hidden()

Hides this view.

Declaration

func hidden() -> some View

Discussion

Hidden views are invisible and can’t receive or respond to interactions.

Returns: A view that hides this view.

See Also

Hiding and Disabling Views

func disabled(Bool) -> View

Adds a condition that controls whether users can interact with this view.

func deleteDisabled(Bool) -> View

Adds a condition for whether the view hierarchy for self can be deleted.

func moveDisabled(Bool) -> View

Adds a condition for whether the view hierarchy for self can be moved.