cornerRadius
TypeScriptget cornerRadius(): (number) | nullSwift declarationvar cornerRadius: CGFloat?The radius of the rounded rectangle’s corners. If `nil` the rectangle does not have a corner radius UI control point.
struct · iOS 27.0+ · SDK 27.1
struct Rectangleget cornerRadius(): (number) | nullSwift declarationvar cornerRadius: CGFloat?The radius of the rounded rectangle’s corners. If `nil` the rectangle does not have a corner radius UI control point.
set cornerRadius(value: (number) | null)Swift declarationvar cornerRadius: CGFloat?The radius of the rounded rectangle’s corners. If `nil` the rectangle does not have a corner radius UI control point.
static init(cornerRadius?: (number) | null): ShapeMarkup_Shape_RectangleSwift declarationinit(cornerRadius: CGFloat? = nil)Create a new rectangle with optionally rounded corners. - Parameter cornerRadius: The corner radius in unit coordinate space (0.0 to 1.0). A value of `0.1` represents 10% of the minimum dimension of the shape. If `nil` then this is a plain rectangle.
get path(): _CoreGraphics_CGPathSwift declarationvar path: CGPath { get }The path of the shape.
No declarations were skipped in this snapshot.