         
         super.drawPlaceholderInRect(rect)
         
-        self.placeholderLabel = UILabel(frame: CGRectMake(rect.origin.x, self.underLineWidth, rect.size.width, self.font.pointSize))
+        self.placeholderLabel = UILabel(frame: CGRectMake(rect.origin.x, self.underLineWidth, rect.size.width, self.font!.pointSize))
         self.placeholderLabel.center = CGPointMake(self.placeholderLabel.center.x, self.frame.size.height - self.underlineView.frame.size.height - self.placeholderLabel.frame.size.height / 2)
         self.placeholderLabel.text = self.placeholder
         self.placeholder = nil
         
-        self.placeholderLabel.font = UIFont(name: self.font.fontName, size: self.font.pointSize)
+        self.placeholderLabel.font = UIFont(name: self.font!.fontName, size: self.font!.pointSize)
         
         self.placeholderLabel.textColor = self.placeholderTextColor
         self.placeholderLabel.alpha = self.placeholderAlphaBefore

        
        self.drawLine()
        
        NSNotificationCenter.defaultCenter().addObserver(self, selector: "didBeginChangeText", name: UITextFieldTextDidBeginEditingNotification, object: self)
        NSNotificationCenter.defaultCenter().addObserver(self, selector: "didChangeText", name: UITextFieldTextDidChangeNotification, object: self)
        NSNotificationCenter.defaultCenter().addObserver(self, selector: "didEndChangeText", name: UITextFieldTextDidEndEditingNotification, object: self)
        
    }
    
    func drawLine() {
        
        var underLine = UIView(frame:CGRectMake(0, self.frame.size.height - self.underLineWidth, self.frame.size.width, self.underLineWidth))
        
        underLine.backgroundColor = self.underLineColor
        underLine.alpha = self.underLineAlpha

    
    func didEndChangeText() {
        
        if self.isLifted && self.text!.isEmpty {
            UIView.animateWithDuration(self.animationDuration, animations: { () -> Void in
                
                self.placeholderLabel.alpha = self.placeholderAlphaBefore
