AI-generated Key Takeaways
-
MLKStroke
represents a sequence of touch points, from pen/touch down to pen/touch up. -
It provides access to a list of touch points as
StrokePoint
objects through thepoints
property. -
You should initialize a
MLKStroke
instance using the designated initializerinitWithPoints:
, providing an array ofStrokePoint
objects.
MLKStroke
@interface MLKStroke : NSObject
Represents a sequence of touch points between a pen (resp. touch) down and pen (resp. touch) up event.
-
List of touch points as
StrokePoint
.Declaration
Objective-C
@property (nonatomic, readonly) NSArray<MLKStrokePoint *> *_Nonnull points;
-
Unavailable. Use
init(points:)
instead.Declaration
Objective-C
- (nonnull instancetype)init;
-
Initializes and returns a
Stroke
object using the sequence of touch points provided.Declaration
Objective-C
- (nonnull instancetype)initWithPoints: (nonnull NSArray<MLKStrokePoint *> *)points;