     private func hideFloatingLabel() {
         floatingLabel.alpha = 0.0
     }
+    
+    private func setFloatingLabelTextToPlaceholderText() {
+        floatingLabel.text = placeholder
+        floatingLabel.sizeToFit()
+        setFloatingLabelOverlapTextField()
+    }
 }


    override public var placeholder: String? {
        didSet {
            floatingLabel.text = placeholder
            floatingLabel.sizeToFit()
            setFloatingLabelOverlapTextField()
        }
    }
    override public var bounds: CGRect {

        floatingLabel = UILabel()
        floatingLabel.font = floatingLabelFont
        floatingLabel.alpha = 0.0
        self.setFloatingLabelTextToPlaceholderText()
        addSubview(floatingLabel)
    }

