<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSWindow/StyleMask-swift.struct/borderless",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:@E@NSWindowStyleMask@NSWindowStyleMaskBorderless"
  },
  "title" : "borderless"
}
-->

# borderless

The window displays none of the usual peripheral elements.

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

## Discussion

Useful only for display or caching purposes. A window that uses `NSWindowStyleMaskBorderless` can’t become key or main, unless the value of [`canBecomeKey`](/documentation/AppKit/NSWindow/canBecomeKey) or [`canBecomeMain`](/documentation/AppKit/NSWindow/canBecomeMain) is <doc://com.apple.documentation/documentation/Swift/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.

---

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)