---
title: "init(rawValue:)"
framework: appkit
role: symbol
role_heading: Initializer
path: "appkit/nswindow/occlusionstate-swift.struct/init(rawvalue:)"
---

# init(rawValue:)

Creates an occlusion state using the given raw value.

## Declaration

```swift
init(rawValue: UInt)
```

## Parameters

- `rawValue`: The raw unsigned integer value of the occlusion state.
