Instance Property


The occlusion state of the app.


var occlusionState: NSApplication.OcclusionState { get }


The value of this property reflects whether any part of the app’s windows are visible to the user. Use this information to disable expensive screen updates when your app is not visible.

See Also

Getting the Occlusion State

struct NSApplication.OcclusionState

This constant indicates whether at least part of any window owned by this app is visible.