iOS.Blog.UILabel_Typography_Extensions
iOS.Blog.UILabel_Typography_Extensions copied to clipboard
Make extension work for UITextView and UITextField
Kinda self explanatory :)
Please test this extensively!
Also thanks for mentioning me in the article! 😻
@Geri-Borbas (just a mention for visibility)
Hey,
could you please show this in action? I've introduced your changes to my project and UITextView does not seem to work. Setting optionalFont has no effect, font has no effect, underline has no effect, showGrid has no effect etc. Whereas setting those on UILabel works. The only thing that seems to work on a UITextView is lineHeight but then the font gets messed up.
Thank you. Cheers
Hello. I will look into it once I will find some time. I also encourage you to try to find a solution on your own, as I'm doing it completely in my free time, and it's not even my project! :)
Anyway, if you find a solution, please let me know :)