Contents

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

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

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