strokeColor
TypeScriptget strokeColor(): (_CoreGraphics_CGColor) | nullSwift declarationvar strokeColor: CGColor?The stroke color of the shape. Defaults to `nil`.
struct · iOS 26.0+ · SDK 27.1
struct ShapeConfigurationA configuration that specifies the appearance of a shape.
get strokeColor(): (_CoreGraphics_CGColor) | nullSwift declarationvar strokeColor: CGColor?The stroke color of the shape. Defaults to `nil`.
set strokeColor(value: (_CoreGraphics_CGColor) | null)Swift declarationvar strokeColor: CGColor?The stroke color of the shape. Defaults to `nil`.
static init(type: ShapeConfiguration_Shape, fillColor?: (_CoreGraphics_CGColor) | null, strokeColor?: (_CoreGraphics_CGColor) | null, lineWidth?: number): ShapeConfigurationSwift declarationinit(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 type(): ShapeConfiguration_ShapeSwift declarationvar type: ShapeConfiguration.ShapeThe type of shape.
set type(value: ShapeConfiguration_Shape)Swift declarationvar type: ShapeConfiguration.ShapeThe type of shape.
get fillColor(): (_CoreGraphics_CGColor) | nullSwift declarationvar fillColor: CGColor?The fill color of the shape. Defaults to black.
set fillColor(value: (_CoreGraphics_CGColor) | null)Swift declarationvar fillColor: CGColor?The fill color of the shape. Defaults to black.
get lineWidth(): numberSwift declarationvar lineWidth: CGFloatThe line width of the shape. Defaults to `0`.
set lineWidth(value: number)Swift declarationvar lineWidth: CGFloatThe line width of the shape. Defaults to `0`.
No declarations were skipped in this snapshot.