<!--
{
  "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/Shape/rect(uniformBottomCorners:topLeadingCorner:topTrailingCorner:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI5ShapePA2A19ConcentricRectangleVRszrlE4rect20uniformBottomCorners16topLeadingCorner0j8TrailingL0AeA4EdgeO0L0O5StyleV_A2OtFZ"
  },
  "title" : "rect(uniformBottomCorners:topLeadingCorner:topTrailingCorner:)"
}
-->

# rect(uniformBottomCorners:topLeadingCorner:topTrailingCorner:)

Creates a rectangle with a corner style set on the two bottom corners
uniformly, and two other styles for the two top corners respectively.

```
@export(implementation) static func rect(uniformBottomCorners: Edge.Corner.Style, topLeadingCorner: Edge.Corner.Style, topTrailingCorner: Edge.Corner.Style) -> Self
```

## Parameters

`uniformBottomCorners`

The corner style to apply uniformly to the
two bottom corners.

`topLeadingCorner`

The top leading corner style.

`topTrailingCorner`

The top trailing corner style.

## Discussion

For the two bottom corners, the system calculates the radius for each
corner first. Then, it selects the largest radius and applies it to
each bottom corner to achieve the symmetric look.

---

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)