One Logo Pool Ball
PaperKit · IOS API REFERENCE

ShapeConfiguration

struct · iOS 26.0+ · SDK 27.1

struct ShapeConfiguration

A configuration that specifies the appearance of a shape.

Members (9)

get · iOS 26.0+

strokeColor

TypeScript
get strokeColor(): (_CoreGraphics_CGColor) | null
Swift declaration
var strokeColor: CGColor?

The stroke color of the shape. Defaults to `nil`.

set · iOS 26.0+

strokeColor

TypeScript
set strokeColor(value: (_CoreGraphics_CGColor) | null)
Swift declaration
var strokeColor: CGColor?

The stroke color of the shape. Defaults to `nil`.

init · iOS 26.0+

init

TypeScript
static init(type: ShapeConfiguration_Shape, fillColor?: (_CoreGraphics_CGColor) | null, strokeColor?: (_CoreGraphics_CGColor) | null, lineWidth?: number): ShapeConfiguration
Swift declaration
init(type: ShapeConfiguration.Shape, fillColor: CGColor? = CGColor(srgbRed: 0, green: 0, blue: 0, alpha: 1), strokeColor: CGColor? = nil, lineWidth: CGFloat = 0)

Create a new shape configuration. - Parameters: - type: The type of shape. - fillColor: The fill color of the shape. - strokeColor: The stroke color of the shape. - lineWidth: The line width of the shape.

get · iOS 26.0+

type

TypeScript
get type(): ShapeConfiguration_Shape
Swift declaration
var type: ShapeConfiguration.Shape

The type of shape.

set · iOS 26.0+

type

TypeScript
set type(value: ShapeConfiguration_Shape)
Swift declaration
var type: ShapeConfiguration.Shape

The type of shape.

get · iOS 26.0+

fillColor

TypeScript
get fillColor(): (_CoreGraphics_CGColor) | null
Swift declaration
var fillColor: CGColor?

The fill color of the shape. Defaults to black.

set · iOS 26.0+

fillColor

TypeScript
set fillColor(value: (_CoreGraphics_CGColor) | null)
Swift declaration
var fillColor: CGColor?

The fill color of the shape. Defaults to black.

get · iOS 26.0+

lineWidth

TypeScript
get lineWidth(): number
Swift declaration
var lineWidth: CGFloat

The line width of the shape. Defaults to `0`.

set · iOS 26.0+

lineWidth

TypeScript
set lineWidth(value: number)
Swift declaration
var lineWidth: CGFloat

The line width of the shape. Defaults to `0`.

Skipped declarations

No declarations were skipped in this snapshot.

All PaperKit types →