Contents

safeAreaRect

A rectangle in the view’s coordinate system that contains the unobscured portion of the view.

Declaration

var safeAreaRect: NSRect { get }

Discussion

The safe area of a view reflects the area not covered by navigation bars, tab bars, toolbars, and other ancestor views that might obscure the current view. Draw content inside this rectangle to ensure it isn’t covered by other content.

See Also

Respecting the View’s Safe Area