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, assign, unsafe_unretained, readwrite) CGRect boundingRect;
  • The stroke points, with differnt strokes separated by CGPointZero values.

    Declaration

    Objective-C

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

    Declaration

    Objective-C

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

    Declaration

    Objective-C

    @property (nonatomic, assign, unsafe_unretained, readwrite)
        CGFloat strokeThickness;
  • Returns a new instance of a PTDigSigView.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithFrame:(CGRect)frame
                               withColour:(nonnull UIColor *)color
                      withStrokeThickness:(CGFloat)thickness;