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
Bottom of button text cut off when using Font Awesome #3
Comments
@squeeish Looks like a titleEdgeInsets issue to me. SwiftyButton plays with title insets internally so I'm not too surprised. Would you mind sharing a code example so I can investigate further? Thank you! |
@ldiqual thanks! It's pretty simple: https://github.com/Vaberer/Font-Awesome-Swift adds functions to UIButton, which I'm using as follows:
I took a look at Font-Awesome-Swift's library, this is the code of
|
@squeeish I played a bit with your code and the library you linked to, and it turns out that using a regular So this bug is unrelated to SwiftyButton. From what I saw, it only happens when using the FA font, not when using the system font, so there's something wrong there (probably the line height). I'd suggest that you open an issue on the library's issue tracker. Let me know if you need anything else! Closing this. |
I will. Thanks for taking the time to help me out! |
For anyone else who needs a solution to this, see Vaberer/Font-Awesome-Swift#20 |
I'm new to iOS programming. I've noticed that if I have a prefix containing the letters "g", "p", etc, the bottom part of the text is cut off when I use font awesome icons by Vaberer's Font-Awesome-Swift library.
Do you have any hints to what might be causing this problem?
The text was updated successfully, but these errors were encountered: