<!--
{
  "availability" : [
    "macOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSViewCornerConfiguration",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSViewCornerConfiguration"
  },
  "title" : "NSViewCornerConfiguration"
}
-->

# NSViewCornerConfiguration

A configuration object that defines the corner styles of a view’s overall shape.

```
class NSViewCornerConfiguration
```

## Topics

### Type Properties

[`class var capsule: NSViewCornerConfiguration`](/documentation/AppKit/NSViewCornerConfiguration/capsule)

A configuration where the container is to take on a capsule shape, scaling with the view’s size.

### Type Methods

[`class func capsule(maximumRadius: CGFloat) -> NSViewCornerConfiguration`](/documentation/AppKit/NSViewCornerConfiguration/capsule(maximumRadius:))

A configuration where the container is to take on a capsule shape, scaling with the view’s size.
and clamped to the `maximumRadius`.

[`class func corners(radius: NSViewCornerRadius) -> NSViewCornerConfiguration`](/documentation/AppKit/NSViewCornerConfiguration/corners(radius:))

A configuration that applies the given radius independently to all corners.

[`class func corners(topLeftRadius: NSViewCornerRadius?, topRightRadius: NSViewCornerRadius?, bottomLeftRadius: NSViewCornerRadius?, bottomRightRadius: NSViewCornerRadius?) -> NSViewCornerConfiguration`](/documentation/AppKit/NSViewCornerConfiguration/corners(topLeftRadius:topRightRadius:bottomLeftRadius:bottomRightRadius:))

A configuration with independent radii for each corner.

[`class func uniformBottomRadius(NSViewCornerRadius, topLeftRadius: NSViewCornerRadius?, topRightRadius: NSViewCornerRadius?) -> NSViewCornerConfiguration`](/documentation/AppKit/NSViewCornerConfiguration/uniformBottomRadius(_:topLeftRadius:topRightRadius:))

A configuration that applies the `bottomRadius` uniformly to the bottom-left
and bottom-right corners, with optional independent radii for the top-left
and top-right corners. When the uniform corners differ, it uses the largest of the resolved corner radii.

[`class func uniformCorners(radius: NSViewCornerRadius) -> NSViewCornerConfiguration`](/documentation/AppKit/NSViewCornerConfiguration/uniformCorners(radius:))

A configuration that applies the given radius uniformly to all corners, using the largest of the resolved corner radii when they differ.

[`class func uniformCorners(radius: NSViewCornerRadius, topLeftRadius: NSViewCornerRadius?, topRightRadius: NSViewCornerRadius?, bottomLeftRadius: NSViewCornerRadius?, bottomRightRadius: NSViewCornerRadius?) -> NSViewCornerConfiguration`](/documentation/AppKit/NSViewCornerConfiguration/uniformCorners(radius:topLeftRadius:topRightRadius:bottomLeftRadius:bottomRightRadius:))

A configuration that applies the given uniform radius uniformly to all corners that are otherwise unspecified. Any specified corner is independent of the others.

[`class func uniformEdges(leftRadius: NSViewCornerRadius, rightRadius: NSViewCornerRadius) -> NSViewCornerConfiguration`](/documentation/AppKit/NSViewCornerConfiguration/uniformEdges(leftRadius:rightRadius:))

A configuration that applies the `leftRadius` uniformly to the top-left and bottom-left corners, and the `rightRadius` uniformly to the top-right
and bottom-right corners. When the uniform corners differ, it uses the largest of the resolved corner radii.

[`class func uniformEdges(topRadius: NSViewCornerRadius, bottomRadius: NSViewCornerRadius) -> NSViewCornerConfiguration`](/documentation/AppKit/NSViewCornerConfiguration/uniformEdges(topRadius:bottomRadius:))

A configuration that applies the `topRadius` uniformly to the top-left and top-right corners, and the `bottomRadius` uniformly to the
bottom-left and bottom-right corners. When the uniform corners differ, it uses the largest of the resolved corner radii.

[`class func uniformLeftRadius(NSViewCornerRadius, topRightRadius: NSViewCornerRadius?, bottomRightRadius: NSViewCornerRadius?) -> NSViewCornerConfiguration`](/documentation/AppKit/NSViewCornerConfiguration/uniformLeftRadius(_:topRightRadius:bottomRightRadius:))

A configuration that applies the `leftRadius` uniformly to the top-left
and bottom-left corners, with optional independent radii for the top-right
and bottom-right corners. When the uniform corners differ, it uses the largest of the resolved corner radii.

[`class func uniformRightRadius(NSViewCornerRadius, topLeftRadius: NSViewCornerRadius?, bottomLeftRadius: NSViewCornerRadius?) -> NSViewCornerConfiguration`](/documentation/AppKit/NSViewCornerConfiguration/uniformRightRadius(_:topLeftRadius:bottomLeftRadius:))

A configuration that applies the `rightRadius` uniformly to the top-right
and bottom-right corners, with optional independent radii for the top-left
and bottom-left corners. When the uniform corners differ, it uses the largest of the resolved corner radii.

[`class func uniformTopRadius(NSViewCornerRadius, bottomLeftRadius: NSViewCornerRadius?, bottomRightRadius: NSViewCornerRadius?) -> NSViewCornerConfiguration`](/documentation/AppKit/NSViewCornerConfiguration/uniformTopRadius(_:bottomLeftRadius:bottomRightRadius:))

A configuration that applies the `topRadius` uniformly to the top-left
and top-right corners, with optional independent radii for the bottom-left
and bottom-right corners. When the uniform corners differ, it uses the largest of the resolved corner radii.

## Relationships

### Conforms To

[`Equatable`](/documentation/Swift/Equatable)

[`Hashable`](/documentation/Swift/Hashable)

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

[`CVarArg`](/documentation/Swift/CVarArg)

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

[`CustomDebugStringConvertible`](/documentation/Swift/CustomDebugStringConvertible)

### Inherits From

[`NSObject-swift.class`](/documentation/ObjectiveC/NSObject-swift.class)

---

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)