<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -",
    "macCatalyst: -",
    "tvOS: 26.0.0 -",
    "visionOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UICornerConfiguration-swift.struct/corners(topLeftRadius:topRightRadius:bottomLeftRadius:bottomRightRadius:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "s:5UIKit21UICornerConfigurationV7corners13topLeftRadius0e5RightG006bottomfG00ihG0AcA0bG0VSg_A3KtFZ"
  },
  "title" : "corners(topLeftRadius:topRightRadius:bottomLeftRadius:bottomRightRadius:)"
}
-->

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

A configuration with independent radii for each corner.

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

## Parameters

`topLeftRadius`

A [`UICornerRadius`](/documentation/UIKit/UICornerRadius-swift.struct) that represents the radius to use for the top-left corner.

`topRightRadius`

A [`UICornerRadius`](/documentation/UIKit/UICornerRadius-swift.struct) that represents the radius to use for the top-right corner.

`bottomLeftRadius`

A [`UICornerRadius`](/documentation/UIKit/UICornerRadius-swift.struct) that represents the radius to use for the bottom-left corner.

`bottomRightRadius`

A [`UICornerRadius`](/documentation/UIKit/UICornerRadius-swift.struct) that represents the radius to use for the bottom-right corner.

---

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)