 import UIKit
 
 open class ParkedTextField: UITextField {
-
+    
     // MARK: Properties
-
+    
     /// Constant part of the text. Defaults to "".
     @IBInspectable open var parkedText: String {
         get {

            }
        }
    }

    enum TypingState {
        case start, typed
    }
    var typingState = TypingState.start

    var beginningOfParkedText: UITextPosition? {
        get {
            return position(from: endOfDocument, offset: -parkedText.characters.count)
        }
    }

    var prevText = ""


    // MARK: Initialization

    public required init?(coder aDecoder: NSCoder) {
        super.init(coder: aDecoder)
        commonInit()
    }

    public override init(frame: CGRect) {
        super.init(frame: frame)
        commonInit()
    }

    func commonInit() {
        
        if let boldFont = font {

        } else {
            parkedTextFont = font
        }
        
        parkedTextColor = textColor
        
        addTarget(self, action: #selector(ParkedTextField.textChanged(_:)), for: .editingChanged)
        
        text = ""
        prevText = text!
        
        typingState = .start
    }
    
    
    // MARK: EditingChanged handler
    
    func textChanged(_ sender: UITextField) {
        switch typingState {
        case .start where text!.characters.count > 0:
