Contents

roundedRectangle(radius:)

A rounded rectangle shape.

Declaration

static func roundedRectangle(radius: CGFloat) -> ButtonBorderShape

Parameters

  • radius:

    The corner radius of the rectangle.

Discussion

Use the buttonBorderShape(_:) view modifier to apply the shape to bordered buttons within a view hierarchy.

See Also

Getting border shapes