Contents

isHiddenOrHasHiddenAncestor

A Boolean value indicating whether the view is hidden from sight because it, or one of its ancestors, is marked as hidden.

Declaration

var isHiddenOrHasHiddenAncestor: Bool { get }

Discussion

The value of this property is true if the value of the isHidden property is true for the current view or any of its ancestors in the view hierarchy. This property does not account for other reasons why a view might be considered hidden, such as being positioned outside its superview’s bounds, not having a window, or residing in a window that is offscreen or overlapped by another window.

See Also

Showing and Hiding the View