---
title: cornerRadius
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nsbox/cornerradius
---

# cornerRadius

The radius of the receiver’s corners when the receiver is a custom box with a simple line border.

## Declaration

```swift
var cornerRadius: CGFloat { get set }
```

## Discussion

Discussion The receiver’s corner radius. It must be a custom box—that is, it has a type of NSBox.BoxType.custom—and it must have a border style of NSBorderType.lineBorder. Special Considerations Functional only when the receiver’s box type (boxType) is NSBoxCustom and its border type (borderType) is NSLineBorder.

## See Also

### Customizing

- [borderColor](appkit/nsbox/bordercolor.md)
- [borderWidth](appkit/nsbox/borderwidth.md)
- [fillColor](appkit/nsbox/fillcolor.md)
