PTFloatingSigViewController


@interface PTFloatingSigViewController
    : UIViewController <PTOverridable, UIImagePickerControllerDelegate,
                        UINavigationControllerDelegate>

The PTFloatingSigViewController allows the user to add signatures anywhere on a document. A default signature can be saved for subsequent use.

  • The thickness of the drawn lines.

    Declaration

    Objective-C

    @property (nonatomic) CGFloat strokeThickness;

    Swift

    var strokeThickness: CGFloat { get set }
  • The color to use for drawing.

    Declaration

    Objective-C

    @property (nonatomic, strong) UIColor *_Nonnull strokeColor;

    Swift

    var strokeColor: UIColor { get set }
  • The canvas view where path appearances are drawn.

    Declaration

    Objective-C

    @property (nonatomic, strong) PTDigSigView *_Nonnull digSigView;

    Swift

    var digSigView: PTDigSigView { get set }
  • Whether to save the signature for later reuse.

    Declaration

    Objective-C

    @property (nonatomic) BOOL saveSignatureForReuse;

    Swift

    var saveSignatureForReuse: 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 }
  • 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: [UIColor] { get set }
  • An object that conforms to the PTFloatingSigViewControllerDelegate protocol.

    Declaration

    Objective-C

    @property (nonatomic, weak) id<PTFloatingSigViewControllerDelegate> _Nullable delegate;

    Swift

    weak var delegate: (any PTFloatingSigViewControllerDelegate)? { get set }