---
title: "capsule(maximumRadius:)"
framework: appkit
role: symbol
role_heading: Type Method
path: "appkit/nsviewcornerconfiguration/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.

## Declaration

```swift
class func capsule(maximumRadius: CGFloat) -> NSViewCornerConfiguration
```
