<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: 16.0.0 -",
    "macOS: 13.0.0 -",
    "tvOS: 16.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 9.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/RectangleCornerRadii/init(topLeading:bottomLeading:bottomTrailing:topTrailing:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI20RectangleCornerRadiiV10topLeading06bottomG00H8Trailing0fI0AC14CoreFoundation7CGFloatV_A3Jtcfc"
  },
  "title" : "init(topLeading:bottomLeading:bottomTrailing:topTrailing:)"
}
-->

# init(topLeading:bottomLeading:bottomTrailing:topTrailing:)

Creates a new set of corner radii for a rounded rectangle with
uneven corners.

```
@export(implementation) init(topLeading: CGFloat = 0, bottomLeading: CGFloat = 0, bottomTrailing: CGFloat = 0, topTrailing: CGFloat = 0)
```

## Parameters

`topLeading`

the radius of the top-leading corner.

`bottomLeading`

the radius of the bottom-leading corner.

`bottomTrailing`

the radius of the bottom-trailing corner.

`topTrailing`

the radius of the top-trailing 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)