 
 import UIKit
 
+// MARK: Class properties and initialization
+/// # Class: YPDrawSignatureView
+/// Accepts touches and draws an image to an UIView
+/// ## Description
+/// This is an UIView based class for capturing a signature drawn by a finger in iOS.
+/// ## Usage
+/// Add the YPSignatureDelegate to the view to exploit the optional delegate methods
+/// - startedDrawing()
+/// - finishedDrawing()
+/// - Add an @IBOutlet, and set its delegate to self
+/// - Clear the signature field by calling clear() to it
+/// - Retrieve the signature from the field by either calling
+/// - getSignature() or
+/// - getCroppedSignature()
 @IBDesignable
 public class YPDrawSignatureView: UIView {
     
-    weak var delegate: YPDrawSignatureViewDelegate!
+    weak var delegate: YPSignatureDelegate!
     
     // MARK: - Public properties
     @IBInspectable public var strokeWidth: CGFloat = 2.0 {

    
    // MARK: - Private properties
    private var path = UIBezierPath()
    private var pts = [CGPoint](count: 5, repeatedValue: CGPoint())
    private var ctr = 0
    
    // MARK: - Init
    required public init?(coder aDecoder: NSCoder) {

// YPDrawSignatureView is open source
// Version 0.2.0
//
// Copyright (c) 2014 - 2016 Yuppielabel and the project contributors
// Available under the MIT license
