             if !isValid {
                 message = "Invalid decimal number"
             }
-            return isValid;
+            return isValid
         })
         self.phoneNumberValidationBlock = ({(text:String,message: inout String) -> Bool in
             let numRegex = "^([+]?[0-9]+)?$"

            if !isValid {
                message = "Invalid url"
            }
            return isValid;
        })
        
        self.floating = false

@IBDesignable

open class EGFloatingTextField: UITextField {
    
    open override var text: String?{
        didSet{
            if !isFirstResponder{
                if !(text ?? "").isEmpty && (oldValue ?? "").isEmpty{
                    floatLabelToTop(active: false, animated: false)
                    floating = true
                }else if (text ?? "").isEmpty && !(oldValue ?? "").isEmpty{
                    animateLabelBack()
                    floating = false
                }
            }
        }
    }
    
    fileprivate typealias EGFloatingTextFieldValidationBlock = ((_ text:String,_ message:inout String)-> Bool)!
    
