         super.init(coder: aDecoder)
         
         self.backgroundColor = self.signatureBackgroundColor
-        self.path.lineWidth = self.lineWidth
+        self.path.lineWidth = self.strokeWidth
+    }
+    
+    override public init(frame: CGRect) {
+        super.init(frame: frame)
+        
+        self.backgroundColor = self.signatureBackgroundColor
+        self.path.lineWidth = self.strokeWidth
     }
     
     // MARK: - Draw


import UIKit

public class YPDrawSignatureView: UIView {
    
    // MARK: - Public properties
    public var lineWidth: CGFloat = 2.0 {
        didSet {
            self.path.lineWidth = lineWidth
        }
    }
    public var strokeColor: UIColor = UIColor.blackColor()
    public var signatureBackgroundColor: UIColor = UIColor.whiteColor()
    
    // MARK: - Private properties
    private var path = UIBezierPath()

        self.path.stroke()
    }
    
    // MARK: - Touch handling functions
    override public func touchesBegan(touches: Set<UITouch>, withEvent event: UIEvent?) {
        if let firstTouch = touches.first{
            let touchPoint = firstTouch.locationInView(self)
