---
title: "corners(topLeftRadius:topRightRadius:bottomLeftRadius:bottomRightRadius:)"
framework: uikit
role: symbol
role_heading: Type Method
path: "uikit/uicornerconfiguration-swift.struct/corners(topleftradius:toprightradius:bottomleftradius:bottomrightradius:)"
---

# corners(topLeftRadius:topRightRadius:bottomLeftRadius:bottomRightRadius:)

A configuration with independent radii for each corner.

## Declaration

```swift
static func corners(topLeftRadius: UICornerRadius?, topRightRadius: UICornerRadius?, bottomLeftRadius: UICornerRadius?, bottomRightRadius: UICornerRadius?) -> UICornerConfiguration
```

## Parameters

- `topLeftRadius`: A doc://com.apple.uikit/documentation/UIKit/UICornerRadius-swift.struct that represents the radius to use for the top-left corner.
- `topRightRadius`: A doc://com.apple.uikit/documentation/UIKit/UICornerRadius-swift.struct that represents the radius to use for the top-right corner.
- `bottomLeftRadius`: A doc://com.apple.uikit/documentation/UIKit/UICornerRadius-swift.struct that represents the radius to use for the bottom-left corner.
- `bottomRightRadius`: A doc://com.apple.uikit/documentation/UIKit/UICornerRadius-swift.struct that represents the radius to use for the bottom-right corner.

## See Also

### Configuring independent corners

- [corners(radius:)](uikit/uicornerconfiguration-swift.struct/corners(radius:).md)
