             return CGAffineTransform(scaleX: 0.8, y: 0.8)
         }
     }
-    
+
     override open func layoutSubviews() {
         super.layoutSubviews()
-        
+
         textField.frame = textFieldFrame()
-        
+
         if isDisclosureIndicatorVisible {
             disclosureIndicatorImageView.frame = disclosureIndicatorFrame()
         }
-        
+
         setState(toState: state, duration: 0)
-        
+
         lineView.frame = CGRect(x: 0,
                                 y: bounds.height - UIView.onePixelInPoints * 2,
                                 width: bounds.width,
                                 height: UIView.onePixelInPoints)
     }
-    
+
     // MARK: - Animation
-    
+
     public func setState(toState state: AnimatedTextFieldState, duration: TimeInterval = 0) {
         UIView.animate(
             withDuration: duration,

            setState(toState: state)
        }
    }
    
    @IBInspectable public var enteredTextColor: UIColor {
        get { return textField.textColor ?? UIColor.black }
        set { textField.textColor = newValue }
    }
    
    @IBInspectable public var lineColor: UIColor {
        get { return lineView.backgroundColor ?? UIColor.gray }
        set { lineView.backgroundColor = newValue }
    }
    
    // MARK: - Public Properties
    
    public var text: String? {
        get {
            return textField.text

                break
            }
        }

        return result
    }

    open func textFieldShouldClear(_ textField: UITextField) -> Bool {
        var result = true

        if let delegateResult = delegate?.animatedTextFieldShouldClear?(self) {
            result = delegateResult
        }

        return result
    }

    open func textFieldShouldReturn(_ textField: UITextField) -> Bool {
        var result = true

        if let delegateResult = delegate?.animatedTextFieldShouldReturn?(self) {
            result = delegateResult
        }

        return result
    }

}
