end
TypeScriptget end(): { x: number; y: number }Swift declarationvar end: CGPointThe ending point in unit coordinate space.
struct · iOS 27.0+ · SDK 27.1
struct Lineget end(): { x: number; y: number }Swift declarationvar end: CGPointThe ending point in unit coordinate space.
set end(value: { x: number; y: number })Swift declarationvar end: CGPointThe ending point in unit coordinate space.
get path(): _CoreGraphics_CGPathSwift declarationvar path: CGPath { get }The path of the shape.
static init(start: { x: number; y: number }, control: ({ x: number; y: number }) | null, end: { x: number; y: number }): ShapeMarkup_Shape_LineSwift declarationinit(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 start(): { x: number; y: number }Swift declarationvar start: CGPointThe starting point in unit coordinate space.
set start(value: { x: number; y: number })Swift declarationvar start: CGPointThe starting point in unit coordinate space.
get control(): ({ x: number; y: number }) | nullSwift declarationvar 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 control(value: ({ x: number; y: number }) | null)Swift declarationvar 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.
No declarations were skipped in this snapshot.