<!--
{
  "availability" : [
    "macCatalyst: -",
    "macOS: 10.0.0 - 10.14.0"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSSwitchButton",
  "metadataVersion" : "0.1.0",
  "role" : "Global Variable",
  "symbol" : {
    "kind" : "Global Variable",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:@NSSwitchButton"
  },
  "title" : "NSSwitchButton"
}
-->

# NSSwitchButton

This style is a variant of `NSToggleButton` that has no border and is typically used to represent a checkbox.

```
static const NSButtonType NSSwitchButton;
```

## Discussion

A checkbox button type is available as an Object Library item in Interface Builder.

---

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)