     }
     
     public func textFieldDidEndEditing(_ textField: UITextField) {
+        if (shouldHideText && text != defaultChar){
+            plainText = textField.text
+            let charArray: Array<Character> = Array(repeating: "●", count: numOfDigits)
+            text = String(charArray)
+        }
          pinDelegate.textFieldDidEndEditing?(textField)
     }
     

        case dark
    }
    
    public convenience init(next : TtroDigitEntry?, previous : TtroDigitEntry?, defaultChar : String = "_", mode : Mode = .light){
        self.init(frame : CGRect.zero)
        self.nextTextField = next
        self.previousTextField = previous

            pinDelegate.onClearText?()
        }
        //print("here \(text)")
        
        return true
    }
    
