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.

Beta
func deleteDisabled(Bool) -> View

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

Beta
func moveDisabled(Bool) -> View

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

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