init(corners:isUniform:)
Create a rectangle with the same corner style set on four corners.
Declaration
init(corners: Edge.Corner.Style, isUniform: Bool = false)Parameters
- corners:
The corner style for all four corners.
- isUniform:
Should the corner style on each corner be applied individually or uniformly.
Discussion
A ConcentricRectangle with all four corners set to concentric individually can vary in resolved radius. This can happen when the rectangle is not centered within the container shape, or the container shape itself has different radius per corner. If set to be uniform, ConcentricRectangle will resolve each corner on its own first, then pick the largest resolved radius out of the corners and apply it uniformly to achieve the symmetric look.