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

# 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 capsule(maximumRadius: CGFloat) -> NSViewCornerConfiguration
```

---

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)