Contents

rect(uniformTrailingCorners:topLeadingCorner:bottomLeadingCorner:)

A rectangle shape that is aligned inside the frame of the view containing it. A corner style will be uniformly applied to the trailing two corners, while the leading two corners will each has an indivdual corner style.

Declaration

static func rect(uniformTrailingCorners: Edge.Corner.Style, topLeadingCorner: Edge.Corner.Style, bottomLeadingCorner: Edge.Corner.Style) -> Self

Parameters

  • uniformTrailingCorners:

    The corner style to be applied on the trailing two corners uniformly. This shape will first resolve the two corners individually, then pick the largest resolved radius out of the two and apply it uniformly to achieve the symmetric look.

  • topLeadingCorner:

    The top leading corner style.

  • bottomLeadingCorner:

    The bottom leading corner style.