     var contentView: NibView? {
         return nil
     }
-    
-    private var innerTextField: UITextField? {
-        var innerTextField: UITextField?
-        if let contentView = contentView {
-            for subview in contentView.subviews {
-                if let textField = subview as? UITextField {
-                    innerTextField = textField
-                    break
-                }
-            }
-        }
-        return innerTextField
-    }
-    
+        
     // MARK: - Init
     
     override init(frame: CGRect) {

    
    override func textRectForBounds(bounds: CGRect) -> CGRect {
        let rect = innerTextField?.frame ?? super.textRectForBounds(bounds)
        return rect
    }
    
    override func editingRectForBounds(bounds: CGRect) -> CGRect {
        let rect = innerTextField?.frame ?? super.editingRectForBounds(bounds)
        return rect
    }
    
    // MARK: UIView

    }

}

private extension UIView {
    
    var subviewTextField: UITextField? {
        var textField: UITextField?
        for subview in subviews {
            if let possible = subview as? UITextField {
                textField = possible
            } else if let possible = subview.subviewTextField {
                textField = possible
            }
            if textField != nil {
                break
            }
        }
        return textField
    }
    
}
