PTDigSigView


@interface PTDigSigView : UIView

The PTDigSigView is used for creating signature path appearances. The view tracks and saves user touches, drawing strokes with the specified color and thickness.

  • The bounding rectangle exactly containing every drawn point.

    Declaration

    Objective-C

    @property (nonatomic) CGRect boundingRect;
  • The stroke points, with differnt strokes separated by CGPointZero values.

    Declaration

    Objective-C

    @property (nonatomic, strong, nullable) NSMutableArray<NSValue *> *points;
  • The stroke color.

    Declaration

    Objective-C

    @property (nonatomic, strong) UIColor *_Nonnull strokeColor;
  • The stroke thickness.

    Declaration

    Objective-C

    @property (nonatomic) CGFloat strokeThickness;
  • The UIButton to choose image.

    Declaration

    Objective-C

    @property (nonatomic, strong) UIButton *_Nonnull imageButton;
  • The UIButton to toggle if new signature will be saved for reuse.

    Declaration

    Objective-C

    @property (nonatomic, strong) UIButton *_Nonnull storeSignatureButton;
  • The UIButton to clear existing signature.

    Declaration

    Objective-C

    @property (nonatomic, strong) UIButton *_Nonnull clearButton;
  • Returns a new instance of a PTDigSigView.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithFrame:(CGRect)frame
                               withColour:(nonnull UIColor *)color
                      withStrokeThickness:(CGFloat)thickness;
  • Set the image of the signature.

    Declaration

    Objective-C

    - (void)setImage:(nonnull UIImage *)image;
  • Clear the signature of the PTDigSigView.

    Declaration

    Objective-C

    - (void)clearSignature;