rect(uniformLeadingCorners:uniformTrailingCorners:)
Creates a rectangle with a corner style uniformly set on the two leading corners, and another style uniformly set on the two trailing corners.
Declaration
static func rect(uniformLeadingCorners: Edge.Corner.Style, uniformTrailingCorners: Edge.Corner.Style) -> SelfParameters
- uniformLeadingCorners:
The corner style to apply uniformly to the two leading corners.
- uniformTrailingCorners:
The corner style to apply uniformly to the two trailing corners.
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.