Skip to content
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

If I toggle st.secure_text_entry, I cannot restore the font #313

Open
dam13n opened this issue Jan 15, 2016 · 1 comment
Open

If I toggle st.secure_text_entry, I cannot restore the font #313

dam13n opened this issue Jan 15, 2016 · 1 comment

Comments

@dam13n
Copy link

dam13n commented Jan 15, 2016

I have a button to "hide/show" a password which changes the secure_text_entry boolean. If it gets hidden then re-revealed, it loses the font I applied to it with RMQ.

  @password.style do |st|
    st.secure_text_entry = false
    st.font = font.size_18_light
  end

Even if I reapply the font, it still shows the system default font (or whatever serif font it is).

@dam13n
Copy link
Author

dam13n commented Jan 15, 2016

Apparently, it's an iOS bug. Found a work around:

  @password.style do |st|
    @password.get.resignFirstResponder
    st.secure_text_entry = false
    @password.get.becomeFirstResponder
  end

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant