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 (assign, readwrite, nonatomic) CGRect boundingRect;

    Swift

    var boundingRect: CGRect { get set }
  • The stroke points, with differnt strokes separated by CGPointZero values.

    Declaration

    Objective-C

    @property (readwrite, strong, nonatomic, nullable)
        NSMutableArray<NSValue *> *points;

    Swift

    var points: NSMutableArray? { get set }
  • The stroke color.

    Declaration

    Objective-C

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

    Swift

    var strokeColor: UIColor { get set }
  • The stroke thickness.

    Declaration

    Objective-C

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

    Swift

    var strokeThickness: CGFloat { get set }
  • Returns a new instance of a PTDigSigView.

    Declaration

    Objective-C

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

    Swift

    init(frame: CGRect, withColour color: UIColor, withStrokeThickness thickness: CGFloat)