Contents

visibleFrame

The current location and dimensions of the visible screen.

Declaration

var visibleFrame: NSRect { get }

Discussion

This rectangle defines the portion of the screen in which it is currently safe to draw your app’s content.

The returned rectangle is always based on the current user-interface settings and does not include the area currently occupied by the dock and menu bar. On Macs that include a camera housing in the bezel, this rectangle does not include the bezel or the visible areas on either side of the bezel. Get those areas using the auxiliaryTopLeftArea and auxiliaryTopRightArea properties. Don’t cache the rectangle in this property; it is based on the current user-interface settings, which can change between calls.

See Also

Related Documentation

Getting the Visible Portion of the Screen