rect(uniformLeadingCorners:topTrailingCorner:bottomTrailingCorner:)
Creates a rectangle with a corner style uniformly set on the two leading corners, and two other styles for the two trailing corners respectively.
Declaration
static func rect(uniformLeadingCorners: Edge.Corner.Style, topTrailingCorner: Edge.Corner.Style, bottomTrailingCorner: Edge.Corner.Style) -> SelfParameters
- uniformLeadingCorners:
The corner style to apply uniformly to the two leading corners.
- topTrailingCorner:
The top trailing corner style.
- bottomTrailingCorner:
The bottom trailing corner style.
Discussion
For the two leading corners, the system calculates the radius for each corner first. Then, it selects the largest radius and applies it to each leading corner to achieve the symmetric look.