AI-generated Key Takeaways
-
A
Strokerepresents a sequence of touch points recorded between a pen or touch down and up event. -
It is primarily characterized by a list of
StrokePointobjects, which store individual touch point data. -
Strokeinitialization is done using an array ofStrokePointobjects, directly defining the stroke's path.
Stroke
class Stroke : NSObjectRepresents a sequence of touch points between a pen (resp. touch) down and pen (resp. touch) up event.
-
List of touch points as
StrokePoint.Declaration
Swift
var points: [StrokePoint] { get } -
Unavailable. Use
init(points:)instead. -
Initializes and returns a
Strokeobject using the sequence of touch points provided.Declaration
Swift
init(points: [StrokePoint])