---
title: "init(uniformTopCorners:bottomLeadingCorner:bottomTrailingCorner:)"
framework: swiftui
role: symbol
role_heading: Initializer
path: "swiftui/concentricrectangle/init(uniformtopcorners:bottomleadingcorner:bottomtrailingcorner:)"
---

# init(uniformTopCorners:bottomLeadingCorner:bottomTrailingCorner:)

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

## Declaration

```swift
init(uniformTopCorners: Edge.Corner.Style = .concentric, bottomLeadingCorner: Edge.Corner.Style = .concentric, bottomTrailingCorner: Edge.Corner.Style = .concentric)
```

## Parameters

- `uniformTopCorners`: The corner style to apply to the top two corners uniformly.
- `bottomLeadingCorner`: The corner style for the bottom leading corner.
- `bottomTrailingCorner`: The corner style for the bottom trailing corner.

## Discussion

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

## See Also

### Creating a rectangle with uniform top corners

- [rect(uniformTopCorners:bottomLeadingCorner:bottomTrailingCorner:)](swiftui/shape/rect(uniformtopcorners:bottomleadingcorner:bottomtrailingcorner:).md)
