Contents

setHidden(_:)

Hides or shows the interface object in your user interface.

Declaration

func setHidden(_ hidden: Bool)

Parameters

  • hidden:

    A Boolean value indicating the visibility of the object. Specify True to hide the object. Specify False to show it.

Mentioned in

Discussion

When you hide or show an object in your interface, WatchKit makes a note to update the layout during the next refresh cycle. During that cycle, WatchKit adjusts the layout to display only the currently visible objects.

See Also

Related Documentation

  • App Programming Guide for watchOS

Hiding and Showing an Object