occlusionState
The occlusion state of the app.
Declaration
var occlusionState: NSApplication.OcclusionState { get }Discussion
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.