     @IBInspectable private var strokeColor: UIColor = UIColor.black
     @IBInspectable private var bgColor: UIColor = UIColor.white
     @IBInspectable private var lineWidth: CGFloat = 3.0
+    
+    weak var delegate: SignaturePadDelegate?
     
     open var isSigned: Bool {
         get {

        path.removeAllPoints()
        dot.removeAllPoints()
        ctr = 0
    }
    
    override open func touchesCancelled(_ touches: Set<UITouch>, with event: UIEvent?) {

        if let touch = touches.first {
            ctr = 0
            points[0] = touch.location(in: self)
        }
        if let delegate = delegate {
            delegate.didStart()
        }
    }
    
