<!--
{
  "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/ConcentricRectangle/init(corners:isUniform:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI19ConcentricRectangleV7corners9isUniformAcA4EdgeO6CornerO5StyleV_Sbtcfc"
  },
  "title" : "init(corners:isUniform:)"
}
-->

# init(corners:isUniform:)

Creates a rectangle with the same corner style set on four corners.

```
init(corners: Edge.Corner.Style, isUniform: Bool = false)
```

## Parameters

`corners`

The corner style for all four corners.

`isUniform`

A Boolean value that indicates whether to apply the
corner style on each corner individually or uniformly.

## Discussion

When you provide `false` for `isUniform`, the system may calculate
a different radius for each corner. This can happen when the rectangle
is not centered within the container shape, or the container shape’s
corners have different radii. When you provide `true` for `isUniform`,
the system calculates the radius for each corner first. Then, it
selects the largest radius and applies it to each 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)