 	}
 	
 	/// The color of the titleLabel text when the textField is not active.
-	@IBInspectable public var titleLabelColor: UIColor? {
-		didSet {
-			titleLabel?.textColor = titleLabelColor
-			MaterialAnimation.animationDisabled { [unowned self] in
-				self.bottomBorderLayer.backgroundColor = self.titleLabelColor?.CGColor
-			}
-		}
-	}
+    @IBInspectable public var titleLabelColor: UIColor? {
+        didSet {
+            titleLabel?.textColor = titleLabelColor
+            MaterialAnimation.animationDisabled { [unowned self] in
+                if nil != self.bottomBorderTitleActiveColor {
+                    self.bottomBorderLayer.backgroundColor = self.titleLabelColor?.CGColor
+                }
+            }
+        }
+    }
 	
 	/// The color of the titleLabel text when the textField is active.
 	@IBInspectable public var titleLabelActiveColor: UIColor?

	}
	
	/// Handler for text editing ended.
	internal func textFieldDidEnd() {
		if 0 < text?.utf16.count {
			showTitleLabel()
		} else if 0 == text?.utf16.count {
			hideTitleLabel()
		}
		titleLabel?.textColor = titleLabelColor
		MaterialAnimation.animationDisabled { [unowned self] in
			self.bottomBorderLayer.backgroundColor = self.detailLabelHidden ? self.titleLabelColor?.CGColor : self.detailLabelActiveColor?.CGColor
		}
	}
	
	/// Manages the layout for the shape of the view instance.
	internal func layoutShape() {

	/**
	:name:	detailLabelHidden
	*/
    @IBInspectable public var detailLabelHidden: Bool = true {
        didSet {
            if detailLabelHidden {
                detailLabel?.textColor = titleLabelColor
                MaterialAnimation.animationDisabled { [unowned self] in
                    var activeColor: CGColor? = self.titleLabelActiveColor?.CGColor
                    var inactiveColor: CGColor? = self.titleLabelColor?.CGColor
                    
                    if let bottomBorderColor: CGColor = self.bottomBorderTitleActiveColor?.CGColor {
                        activeColor = bottomBorderColor
                    }
                    
                    if let bottomBorderColor: CGColor = self.bottomBorderColor?.CGColor {
                        inactiveColor = bottomBorderColor
                    }
                    
                    self.bottomBorderLayer.backgroundColor = self.editing ? activeColor : inactiveColor
                }
                hideDetailLabel()
            } else {
                detailLabel?.textColor = detailLabelActiveColor
                MaterialAnimation.animationDisabled { [unowned self] in
                    var activeColor: CGColor? = self.detailLabelActiveColor?.CGColor
                    
                    if let bottomBorderColor: CGColor = self.bottomBorderDetailActiveColor?.CGColor {
                        activeColor = bottomBorderColor
                    }
                    
                    self.bottomBorderLayer.backgroundColor = activeColor
                }
                showDetailLabel()
            }
        }
    }
	
	/// A wrapper for searchBar.placeholder.
	@IBInspectable public override var placeholder: String? {
