<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSBox/BoxType-swift.enum",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:@E@NSBoxType"
  },
  "title" : "NSBox.BoxType"
}
-->

# NSBox.BoxType

These constants and data type identifies box types, which, in conjunction with a box’s border type, define the appearance of the box.

```
enum BoxType
```

## Topics

### Constants

[`NSBox.BoxType.primary`](/documentation/AppKit/NSBox/BoxType-swift.enum/primary)

[`secondary`](/documentation/AppKit/NSBox/BoxType-swift.enum/secondary)

[`NSBox.BoxType.separator`](/documentation/AppKit/NSBox/BoxType-swift.enum/separator)

[`oldStyle`](/documentation/AppKit/NSBox/BoxType-swift.enum/oldStyle)

[`NSBox.BoxType.custom`](/documentation/AppKit/NSBox/BoxType-swift.enum/custom)



---

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)