PTSignatureAnnotationOptions


@interface PTSignatureAnnotationOptions : PTAnnotationOptions

An object that contains options for signature annotations.

  • Whether the annotation’s appearance (strokes) can be edited. The default value is NO.

    Declaration

    Objective-C

    @property (nonatomic) BOOL canEditAppearance;

    Swift

    var canEditAppearance: Bool { get set }
  • If true, signature fields will be signed by placing a stamp on top of them rather than changing the field’s appearance. Default is NO.

    Declaration

    Objective-C

    @property (nonatomic) BOOL signSignatureFieldsWithStamps;

    Swift

    var signSignatureFieldsWithStamps: Bool { get set }
  • If true, signature fields will be considered signed if there is an ink or stamp annotation overlapping it. Default is YES.

    Declaration

    Objective-C

    @property (nonatomic, assign, unsafe_unretained, readwrite,
              getter=isWidgetSigningWithOverlappingAnnotationEnabled)
        BOOL widgetSigningWithOverlappingAnnotationEnabled;

    Swift

    var isWidgetSigningWithOverlappingAnnotationEnabled: Bool { get set }
  • If true, newly created signature will be saved to the signature list. Default is YES.

    Declaration

    Objective-C

    @property (nonatomic) BOOL storeNewSignature;

    Swift

    var storeNewSignature: Bool { get set }
  • An array of signature types a user can select when creating a signature. The default options are PTDrawnSignature, PTTypedSignature, and PTImageSignature.

    Declaration

    Objective-C

    @property (nonatomic, copy) NSArray<NSNumber *> *_Nonnull signatureTypes;

    Swift

    var signatureTypes: [NSNumber] { get set }
  • The maximum number of saved signatures. Default is -1 and the number is not limited.

    Declaration

    Objective-C

    @property (nonatomic) int maxSignatureCount;

    Swift

    var maxSignatureCount: Int32 { get set }
  • An array of signature colors a user can select when creating a signature. The default options are UIColor.blackColor, UIColor.blueColor, and UIColor.redColor.

    Declaration

    Objective-C

    @property (nonatomic, copy) NSArray<UIColor *> *_Nonnull signatureColors;

    Swift

    var signatureColors: [Any] { get set }
  • If true, the signature list will be shown when the user taps the document (rather than applying the currently seleceted signature). Default is NO.

    Declaration

    Objective-C

    @property (nonatomic) BOOL showSignatureListWhenTapped;

    Swift

    var showSignatureListWhenTapped: Bool { get set }
  • If true, storeNewSignature will be read from NSUserDefaults. Default is YES.

    Declaration

    Objective-C

    @property (nonatomic) BOOL persistStoreSignatureSetting;

    Swift

    var persistStoreSignatureSetting: Bool { get set }