One Logo Pool Ball
PaperKit · IOS API REFERENCE

ShapeMarkup.Shape.Rectangle

struct · iOS 27.0+ · SDK 27.1

struct Rectangle

Members (4)

get · iOS 27.0+

cornerRadius

TypeScript
get cornerRadius(): (number) | null
Swift declaration
var cornerRadius: CGFloat?

The radius of the rounded rectangle’s corners. If `nil` the rectangle does not have a corner radius UI control point.

set · iOS 27.0+

cornerRadius

TypeScript
set cornerRadius(value: (number) | null)
Swift declaration
var cornerRadius: CGFloat?

The radius of the rounded rectangle’s corners. If `nil` the rectangle does not have a corner radius UI control point.

init · iOS 27.0+

init

TypeScript
static init(cornerRadius?: (number) | null): ShapeMarkup_Shape_Rectangle
Swift declaration
init(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 · iOS 27.0+

path

TypeScript
get path(): _CoreGraphics_CGPath
Swift declaration
var path: CGPath { get }

The path of the shape.

Skipped declarations

No declarations were skipped in this snapshot.

All PaperKit types →