rect(cornerRadius:style:)
A rectangular shape with rounded corners, aligned inside the frame of the view containing it.
Declaration
static func rect(cornerRadius: CGFloat, style: RoundedCornerStyle = .continuous) -> SelfA rectangular shape with rounded corners, aligned inside the frame of the view containing it.
static func rect(cornerRadius: CGFloat, style: RoundedCornerStyle = .continuous) -> Self