<!--
{
  "availability" : [
    "macOS: 10.9.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSWindow/OcclusionState-swift.struct",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:@E@NSWindowOcclusionState"
  },
  "title" : "NSWindow.OcclusionState"
}
-->

# NSWindow.OcclusionState

Specifies whether the window is occluded.

```
struct OcclusionState
```

## Topics

### Constants

[`visible`](/documentation/AppKit/NSWindow/OcclusionState-swift.struct/visible)

If set, at least part of the window is visible; if not set, the entire window is occluded. A window that has a nonrectangular shape can be entirely occluded onscreen, but if its bounding box falls into a visible region, the window is considered to be visible. Note that a completely transparent window may also be considered visible.

### Occlusion State Creation

[`init(rawValue:)`](/documentation/AppKit/NSWindow/OcclusionState-swift.struct/init(rawValue:))

Creates an occlusion state using the given raw value.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)