---
title: borderless
framework: appkit
role: symbol
role_heading: Type Property
path: appkit/nswindow/stylemask-swift.struct/borderless
---

# borderless

The window displays none of the usual peripheral elements.

## Declaration

```swift
static var borderless: NSWindow.StyleMask { get }
```

## Discussion

Discussion Useful only for display or caching purposes. A window that uses NSWindowStyleMaskBorderless can’t become key or main, unless the value of canBecomeKey or canBecomeMain is true. Note that you can set a window’s or panel’s style mask to NSWindowStyleMaskBorderless in Interface Builder by deselecting Title Bar in the Appearance section of the Attributes inspector.

## See Also

### Constants

- [titled](appkit/nswindow/stylemask-swift.struct/titled.md)
- [closable](appkit/nswindow/stylemask-swift.struct/closable.md)
- [miniaturizable](appkit/nswindow/stylemask-swift.struct/miniaturizable.md)
- [resizable](appkit/nswindow/stylemask-swift.struct/resizable.md)
- [texturedBackground](appkit/nswindow/stylemask-swift.struct/texturedbackground.md)
- [unifiedTitleAndToolbar](appkit/nswindow/stylemask-swift.struct/unifiedtitleandtoolbar.md)
- [fullScreen](appkit/nswindow/stylemask-swift.struct/fullscreen.md)
- [fullSizeContentView](appkit/nswindow/stylemask-swift.struct/fullsizecontentview.md)
- [utilityWindow](appkit/nswindow/stylemask-swift.struct/utilitywindow.md)
- [docModalWindow](appkit/nswindow/stylemask-swift.struct/docmodalwindow.md)
- [nonactivatingPanel](appkit/nswindow/stylemask-swift.struct/nonactivatingpanel.md)
- [hudWindow](appkit/nswindow/stylemask-swift.struct/hudwindow.md)
