New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to fetch real password before revealing it? #24
Comments
Could you explain a bit more what you want to do? |
My app cannot get user's password directly. It would fetch it remotely, decrypt it then show it when user touching the revealing button. Thanks! |
Fetching the password remotely is not something this library does. You should do it independently and then set the value of the row to that password. |
Well, I understand that. My problem is how can I hook the toggle action so I can fetch it remotely then reveal it to user. |
Yeah in that case I think subclassing is the right way, to fetch the password and then revealing it, unless you are fine without changing |
Thanks for your respond. I forked the source code and made visibilityButton public so I can replace its target action. It works well. 😄 |
What's the best practice to do it?
I found that I have to write a subclass
MyGenericPasswordCell
ofGenericPasswordCell
and override thetogglePasswordVisibility
method. After that, I have to write aMyGenericPasswordRow
,_GenericPasswordRow
. The Eureka framework is not friendly to add new row type.Actually, I just make
visibilityButton
public, and replace the target action.The text was updated successfully, but these errors were encountered: