PTDigSigViewController

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

The PTDigSigViewController allows the user to draw a signature or select an image for a signature form field. A certificate can be used for digital signing.

  • The thickness of the drawn lines.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) CGFloat strokeThickness;

    Swift

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

    Declaration

    Objective-C

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

    Swift

    var strokeColor: UIColor { get set }
  • Whether digital signing is allowed. Default is YES.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) BOOL allowDigitalSigning;

    Swift

    var allowDigitalSigning: Bool { get set }
  • Whether a photo can picked for use as a signature. Default is YES.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) BOOL allowPhotoPicker;

    Swift

    var allowPhotoPicker: Bool { get set }
  • An object that conforms to the PTDigSigViewControllerDelegate protocol.

    Declaration

    Objective-C

    @property (readwrite, nonatomic)
        id<PTDigSigViewControllerDelegate> _Nullable delegate;

    Swift

    weak var delegate: PTDigSigViewControllerDelegate? { get set }