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

setting barbuttonItems cuts off icon #42

Open
MartinP7r opened this issue Sep 16, 2018 · 0 comments
Open

setting barbuttonItems cuts off icon #42

MartinP7r opened this issue Sep 16, 2018 · 0 comments

Comments

@MartinP7r
Copy link

MartinP7r commented Sep 16, 2018

When I set a navigation bar like below, the icon gets cut off.

let settingsBarButton = UIBarButtonItem()
settingsBarButton.setIcon(icon: .emoji(.gear), iconSize: 30)
navigationItem.rightBarButtonItems = [settingsBarButton]

image

Not sure what's wrong since the example in your readme also uses size 30.

edit:
setting it via

settingsBarButton.image = UIImage(icon: .emoji(.gear), size: CGSize(width: 30, height: 30))

works fine

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