Instance Method

hidden()

Hides the view.

Declaration

func hidden() -> some View

Return Value

A hidden view.

Discussion

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

See Also

Hiding and Disabling Views

func disabled(Bool) -> View

Adds a condition for whether users can interact with the view.

func deleteDisabled(Bool) -> View

Adds a condition for whether the view’s view hierarchy is deletable.

func moveDisabled(Bool) -> View

Adds a condition for whether the view's view hierarchy is movable.