 
 @IBDesignable
 public class YPDrawSignatureView: UIView {
+    
+    weak var delegate: YPDrawSignatureViewDelegate!
     
     // MARK: - Public properties
     @IBInspectable public var strokeWidth: CGFloat = 2.0 {


// MARK: - Optional Protocol Methods for YPDrawSignatureViewDelegate
@objc protocol YPDrawSignatureViewDelegate: class {
    optional func startedDrawing()
    optional func finishedDrawing()
}

            return nil
        }
    }
    
    // Save the Signature (cropped of outside white space) as a UIImage
    public func getSignatureCropped() -> UIImage? {
        if let fullRender = getSignature() {
