PTPencilDrawingCreate
@interface PTPencilDrawingCreate : PTCreateToolBase
Creates Apple Pencil drawing annotations.
-
Adds the freehand annotation to the document.
Declaration
Objective-C
- (void)commitAnnotation;
Swift
func commitAnnotation()
-
Cancels editing of the current annotation.
Declaration
Objective-C
- (void)cancelEditingAnnotation;
Swift
func cancelEditingAnnotation()
-
Set to
YES
if thePKToolPicker
should be visible.Declaration
Objective-C
@property (nonatomic) BOOL shouldShowToolPicker;
Swift
var shouldShowToolPicker: Bool { get set }
-
The canvas used for drawing
PTPencilDrawingCreate
annotations usingPencilKit
. A subclass ofPKCanvasView
.Declaration
Objective-C
@property (nonatomic, strong) PTCanvasView *_Nonnull canvasView;
Swift
var canvasView: PTCanvasView { get set }
-
An object that conforms to the PTPencilDrawingCreateDelegate protocol.
Declaration
Objective-C
@property (nonatomic, weak, nullable) id<PTPencilDrawingCreateDelegate> delegate;
Swift
weak var delegate: (any PTPencilDrawingCreateDelegate)? { get set }