init(cornerSize:style:)
Creates a new rounded rectangle shape.
Declaration
init(cornerSize: CGSize, style: RoundedCornerStyle = .continuous)Parameters
- cornerSize:
The width and height of the rounded corners.
- style:
The style of corners drawn by the shape.