Path
The outline of a 2D shape.
Declaration
@frozen struct PathTopics
Creating a path
init()init(_:)init(ellipseIn:)init(roundedRect:cornerRadius:style:)init(roundedRect:cornerSize:style:)init(roundedRect:cornerRadii:style:)
Getting the path’s characteristics
Drawing a path
move(to:)addArc(center:radius:startAngle:endAngle:clockwise:transform:)addArc(tangent1End:tangent2End:radius:transform:)addCurve(to:control1:control2:)addEllipse(in:transform:)addLine(to:)addLines(_:)addPath(_:transform:)addQuadCurve(to:control:)addRect(_:transform:)addRects(_:transform:)addRelativeArc(center:radius:startAngle:delta:transform:)addRoundedRect(in:cornerSize:style:transform:)closeSubpath()
Transforming the path
Performing operations on the path
addRoundedRect(in:cornerSize:style:transform:)intersection(_:eoFill:)lineIntersection(_:eoFill:)lineSubtraction(_:eoFill:)normalized(eoFill:)subtracting(_:eoFill:)symmetricDifference(_:eoFill:)union(_:eoFill:)