---
title: windowLevel()
framework: appkit
role: symbol
role_heading: Instance Method
path: appkit/nstextinputclient/windowlevel()
---

# windowLevel()

Returns the window level of the receiver.

## Declaration

```swift
optional func windowLevel() -> Int
```

## Return Value

Return Value The window level of the receiver.

## Discussion

Discussion Implementation of this method is optional. A class adopting NSTextInputClient can implement this interface to specify its window level if it is higher than NSFloatingWindowLevel.

## See Also

### Placing content

- [documentVisibleRect](appkit/nstextinputclient/documentvisiblerect.md)
- [unionRectInVisibleSelectedRange](appkit/nstextinputclient/unionrectinvisibleselectedrange.md)
- [preferredTextAccessoryPlacement()](appkit/nstextinputclient/preferredtextaccessoryplacement().md)
