---
title: styleMask
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nswindow/stylemask-swift.property
---

# styleMask

Flags that describe the window’s current style, such as if it’s resizable or in full-screen mode.

## Declaration

```swift
var styleMask: NSWindow.StyleMask { get set }
```

## Discussion

Discussion The styleMask is settable on macOS 10.6 and later. Setting this property has the same restrictions as the styleMask parameter of init(contentRect:styleMask:backing:defer:). Changing the style mask may cause the view hierarchy to be rebuilt.

## See Also

### Configuring the Window’s Appearance

- [NSWindow.StyleMask](appkit/nswindow/stylemask-swift.struct.md)
- [toggleFullScreen(_:)](appkit/nswindow/togglefullscreen(_:).md)
- [worksWhenModal](appkit/nswindow/workswhenmodal.md)
- [alphaValue](appkit/nswindow/alphavalue.md)
- [backgroundColor](appkit/nswindow/backgroundcolor.md)
- [colorSpace](appkit/nswindow/colorspace.md)
- [setDynamicDepthLimit(_:)](appkit/nswindow/setdynamicdepthlimit(_:).md)
- [canHide](appkit/nswindow/canhide.md)
- [isOnActiveSpace](appkit/nswindow/isonactivespace.md)
- [hidesOnDeactivate](appkit/nswindow/hidesondeactivate.md)
- [collectionBehavior](appkit/nswindow/collectionbehavior-swift.property.md)
- [isOpaque](appkit/nswindow/isopaque.md)
- [hasShadow](appkit/nswindow/hasshadow.md)
- [invalidateShadow()](appkit/nswindow/invalidateshadow().md)
- [autorecalculatesContentBorderThickness(for:)](appkit/nswindow/autorecalculatescontentborderthickness(for:).md)
