One Logo Pool Ball
PaperKit · IOS API REFERENCE

ShapeMarkup.Shape.Line

struct · iOS 27.0+ · SDK 27.1

struct Line

Members (8)

get · iOS 27.0+

end

TypeScript
get end(): { x: number; y: number }
Swift declaration
var end: CGPoint

The ending point in unit coordinate space.

set · iOS 27.0+

end

TypeScript
set end(value: { x: number; y: number })
Swift declaration
var end: CGPoint

The ending point in unit coordinate space.

get · iOS 27.0+

path

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

The path of the shape.

init · iOS 27.0+

init

TypeScript
static init(start: { x: number; y: number }, control: ({ x: number; y: number }) | null, end: { x: number; y: number }): ShapeMarkup_Shape_Line
Swift declaration
init(start: CGPoint, control: CGPoint? = nil, end: CGPoint)

Create a new quadratic Bézier curve line. - Parameters: - start: The starting point in unit coordinate space. - control: The control point that defines the curve in unit coordinate space. Defaults to `nil` which creates a straight line without a middle control point. - end: The ending point in unit coordinate space.

get · iOS 27.0+

start

TypeScript
get start(): { x: number; y: number }
Swift declaration
var start: CGPoint

The starting point in unit coordinate space.

set · iOS 27.0+

start

TypeScript
set start(value: { x: number; y: number })
Swift declaration
var start: CGPoint

The starting point in unit coordinate space.

get · iOS 27.0+

control

TypeScript
get control(): ({ x: number; y: number }) | null
Swift declaration
var control: CGPoint?

The control point that defines the curve in unit coordinate space. if `nil` this is a straight line without a middle control point.

set · iOS 27.0+

control

TypeScript
set control(value: ({ x: number; y: number }) | null)
Swift declaration
var control: CGPoint?

The control point that defines the curve in unit coordinate space. if `nil` this is a straight line without a middle control point.

Skipped declarations

No declarations were skipped in this snapshot.

All PaperKit types →