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 (assign, readwrite, nonatomic) BOOL shouldShowToolPicker;

    Swift

    var shouldShowToolPicker: Bool { get set }