<!--
{
  "availability" : [
    "macOS: 10.9.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSWindow/occlusionState-swift.property",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSWindow(py)occlusionState"
  },
  "title" : "occlusionState"
}
-->

# occlusionState

The occlusion state of the window.

```
var occlusionState: NSWindow.OcclusionState { get }
```

## Discussion

When the value of this property is [`visible`](/documentation/AppKit/NSWindow/OcclusionState-swift.struct/visible), at least part of the window is visible; otherwise, the window is fully occluded.

---

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)