     private func isPlaceholder(_ i: Int) -> Bool {
         let inputTextCount = text?.count ?? 0
         return i >= inputTextCount
+    }
+    
+    private func isInput(_ i: Int) -> Bool {
+        let inputTextCount = text?.count ?? 0
+        return i == inputTextCount
     }
     
     private func createLabel() -> UILabel {

    private func updateUnderlines() {
        for label in labels {
            let index = labels.index(of: label) ?? 0
            if isPlaceholder(index) {
                   underlines[index].backgroundColor = underlineColor
            }
            else{

    @IBInspectable public var needToUpdateUnderlines: Bool = true
    @IBInspectable public var characterBackgroundColor: UIColor = UIColor.clear
    @IBInspectable public var characterBackgroundCornerRadius: CGFloat = 0
    @IBInspectable public var highlightInputUnderline: Bool = false
    
    //MARK: Customizable from code
    public var keyboardType: UIKeyboardType = UIKeyboardType.alphabet
