-
Notifications
You must be signed in to change notification settings - Fork 108
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
UIBarButtonItem is not aligned #7
Labels
Comments
Please Check Release 1.5. |
I have added Example 3 (Icon with custom cgRect) in README. |
@ranesr thank you :) I was already trying to fix myself. You were faster :D |
We gotta little problem here.
If you approve, I will create a PR |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, I'm using SwiftIcons library (installed though Pod).
I'm trying to create UIBarButtonItem with specific icon.
I set it like this:
menuButton.setIcon(icon: .ionicons(.navicon), iconSize: 35, color: systemColor)
where
systemColor == UIView().tintColor
But with this setup, my UIBar looks like this:
As, you can see it is not aligned vertically (I tried using
SetTitlePositionAdjustment
, but I can adjust only horizontal position).I kinda fixed the position by using:
menuButton.setIcon(prefixText: "", icon: .ionicons(.navicon), iconColor: systemColor, postfixText: "", cgRect: CGRect(x: 30, y: 30, width: 30, height: 30), size: 35, iconSize: 36)
But, then button is not tappable...
Can anyone help me here?
The text was updated successfully, but these errors were encountered: