---
title: "rect(uniformBottomCorners:topLeadingCorner:topTrailingCorner:)"
framework: swiftui
role: symbol
role_heading: Type Method
path: "swiftui/shape/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.

## Declaration

```swift
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

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.

## See Also

### Creating a rectangle with uniform bottom corners

- [init(uniformBottomCorners:topLeadingCorner:topTrailingCorner:)](swiftui/concentricrectangle/init(uniformbottomcorners:topleadingcorner:toptrailingcorner:).md)
