Contents

rect(uniformBottomCorners:topLeadingCorner:topTrailingCorner:)

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

Declaration

static func rect(uniformBottomCorners: Edge.Corner.Style, topLeadingCorner: Edge.Corner.Style, topTrailingCorner: Edge.Corner.Style) -> Self

Parameters

  • uniformBottomCorners:

    The corner style to be applied on the bottom 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.

  • topTrailingCorner:

    The top trailing corner style.