---
title: "capsule(maximumRadius:)"
framework: uikit
role: symbol
role_heading: Type Method
path: "uikit/uicornerconfiguration-swift.struct/capsule(maximumradius:)"
---

# capsule(maximumRadius:)

A configuration that rounds the corners into a capsule shape, scaling with the view’s size up to the maximum radius you provide.

## Declaration

```swift
static func capsule(maximumRadius: Double? = nil) -> UICornerConfiguration
```

## Parameters

- `maximumRadius`: A double value that represents the maximum radius to apply to corners for this configuration.
