   /// Handles the visibilityIconButton TouchUpInside event.
   @objc
   func handleVisibilityIconButton() {
-    /// Workaround: Reassign text to reset cursor
-    /// This is a known issue with UITextField
-    /// Source: https://stackoverflow.com/questions/14220187/uitextfield-has-trailing-whitespace-after-securetextentry-toggle
-    let textHolder = text
-    text = " "
-    text = textHolder
-    
     UIView.transition(
       with: (visibilityIconButton?.imageView)!,
       duration: 0.3,

    
    rightView?.grid.views.remove(at: i)
  }
}

  open override var isSecureTextEntry: Bool {
    didSet {
      updateVisibilityIcon()
      fixCursorPosition()
    }
  }
  
