PTPencilDrawingCreate


@interface PTPencilDrawingCreate : PTCreateToolBase

Creates Apple Pencil drawing annotations.

  • Adds the freehand annotation to the document.

    Declaration

    Objective-C

    - (void)commitAnnotation;

    Swift

    func commitAnnotation()
  • Edit the annotation.

    Declaration

    Objective-C

    - (void)editAnnotation:(nonnull PTAnnot *)annot onPage:(int)pageNumber;

    Swift

    func editAnnotation(_ annot: PTAnnot, onPage pageNumber: Int32)
  • Cancels editing of the current annotation.

    Declaration

    Objective-C

    - (void)cancelEditingAnnotation;

    Swift

    func cancelEditingAnnotation()
  • Set to YES if the PKToolPicker should be visible.

    Declaration

    Objective-C

    @property (nonatomic) BOOL shouldShowToolPicker;

    Swift

    var shouldShowToolPicker: Bool { get set }
  • The canvas used for drawing PTPencilDrawingCreate annotations using PencilKit. A subclass of PKCanvasView.

    Declaration

    Objective-C

    @property (nonatomic) 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: PTPencilDrawingCreateDelegate? { get set }