Contents

init(uniformBottomCorners:topLeadingCorner:topTrailingCorner:)

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

Declaration

init(uniformBottomCorners: Edge.Corner.Style = .concentric, topLeadingCorner: Edge.Corner.Style = .concentric, topTrailingCorner: Edge.Corner.Style = .concentric)

Parameters

  • uniformBottomCorners:

    The corner style to apply to the bottom two corners uniformly.

  • topLeadingCorner:

    The corner style for the top leading corner.

  • topTrailingCorner:

    The corner style for the top trailing corner.

Discussion

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

See Also

Creating a rectangle with uniform bottom corners