     var hasError : Bool!
     var errorMessage : String!
     
-    
-    
     required public init(coder aDecoder: NSCoder) {
-        super.init(coder: aDecoder)
+        super.init(coder: aDecoder)!
         self.commonInit()
     }
-    
     
     override public init(frame: CGRect) {
         super.init(frame: frame)

            
            if self.validationType! == .Email {
                
                var isValid = self.emailValidationBlock(text: self.text, message: &message)
                
                performValidation(isValid,message: message)
                
            } else {
                var isValid = self.numberValidationBlock(text: self.text, message: &message)
                
                performValidation(isValid,message: message)
            }
        }
    }
    
    
}

extension EGFloatingTextField {

    let kDefaultLineHeight = CGFloat(22)
    let kDefaultLabelTextColor = UIColor(white: CGFloat(0), alpha: CGFloat(0.54))
    
    public var floatingLabel : Bool! = true
    var label : UILabel!
    var labelFont : UIFont!
    var labelTextColor : UIColor!
