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

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

Create corner styles with per-corner styles.

```
init(topLeading: Edge.Corner.Style = 0, topTrailing: Edge.Corner.Style = 0, bottomLeading: Edge.Corner.Style = 0, bottomTrailing: Edge.Corner.Style = 0)
```

## Parameters

`topLeading`

Top leading corner style.

`topTrailing`

Top trailing corner style.

`bottomLeading`

Bottom leading corner style.

`bottomTrailing`

Bottom trailing corner style.

---

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)