---
title: "init(uniformLeadingCorners:uniformTrailingCorners:)"
framework: swiftui
role: symbol
role_heading: Initializer
path: "swiftui/concentricrectangle/init(uniformleadingcorners:uniformtrailingcorners:)"
---

# init(uniformLeadingCorners:uniformTrailingCorners:)

Creates a rectangle with a corner style set on the leading two corners uniformly, and another style set on the trailing two corners uniformly.

## Declaration

```swift
init(uniformLeadingCorners: Edge.Corner.Style = .concentric, uniformTrailingCorners: Edge.Corner.Style = .concentric)
```

## Parameters

- `uniformLeadingCorners`: The corner style to apply to the leading two corners uniformly.
- `uniformTrailingCorners`: The corner style to apply to the trailing two corners uniformly.

## Discussion

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

## See Also

### Creating a rectangle with uniform leading and trailing corners

- [rect(uniformLeadingCorners:uniformTrailingCorners:)](swiftui/shape/rect(uniformleadingcorners:uniformtrailingcorners:).md)
