 
 import UIKit
 
+public protocol PasswordInputProtocol: class {
+  func passwordInputComplete(passwordInputView: PasswordInputView, input: String)
+}
+
 public class PasswordInputView: UIView {
+
+  public weak var delegate: PasswordInputProtocol?
 
   public var keyboardType: UIKeyboardType = .NumberPad
 


  override public func canBecomeFirstResponder() -> Bool {
    return true
  }

}

      for j in store.length..<digit {
        strokeViews[j].hidden = false
        dotViews[j].hidden = true
      }
      if store.length == digit {
        delegate?.passwordInputComplete(self, input: store)
      }
    }
  }
