 	
     /// A boolean indicating whether the text is empty.
     open var isEmpty: Bool {
-        return true == text?.isEmpty
+        return 0 == text?.utf16.count
     }
     
     open override var leftView: UIView? {

}

open class TextField: UITextField {
    /// Will layout the view.
    open var willLayout: Bool {
        return 0 < width && 0 < height && nil != superview
    }
    
    /// Default size when using AutoLayout.
    open override var intrinsicContentSize: CGSize {
        return CGSize(width: width, height: 32)

        let w = leftViewWidth
        let h = 0 == height ? intrinsicContentSize.height : height
        
        placeholderLabel.transform = CGAffineTransform.identity
        
        guard isEditing || !isEmpty || !isPlaceholderAnimated else {
            placeholderLabel.frame = CGRect(x: w, y: 0, width: width - w, height: h)
            return
        }
        
        placeholderLabel.frame = CGRect(x: w, y: 0, width: width - w, height: h)
        placeholderLabel.transform = CGAffineTransform(scaleX: 0.75, y: 0.75)
        
