 
 extension AKMaskField: UITextFieldDelegate {
   
-  func textFieldDidBeginEditing(textField: UITextField) {
+  public func textFieldDidBeginEditing(textField: UITextField) {
     guard let maskObject = maskObject where !maskObject.isEmpty else { return }
     
     // Initial carret position


import UIKit

class AKMaskField: UITextField {

  //  MARK: - Set up mask
  

    maskDelegate?.maskFieldDidBeginEditing(self)
  }
  
  public func textFieldDidEndEditing(textField: UITextField) {
    isBecomeFirstResponder = false
    updateMaskTexWithString(maskText)
    
    maskDelegate?.maskFieldDidEndEditing(self)
  }

  public func textField(textField: UITextField, shouldChangeCharactersInRange range: NSRange, replacementString string: String) -> Bool {
    guard let maskObject = maskObject where !maskObject.isEmpty else { return true }
    
    let rangeInt = range.toRange()!
