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

Can't set ShineButton to RightBarButtonItem #19

Open
bdeppy opened this issue Oct 25, 2018 · 0 comments
Open

Can't set ShineButton to RightBarButtonItem #19

bdeppy opened this issue Oct 25, 2018 · 0 comments

Comments

@bdeppy
Copy link

bdeppy commented Oct 25, 2018

I am trying to add shinebutton to navigation bar but i failed

let favoriteButton = WCLShineButton()
favoriteButton.frame = CGRect(x: 0, y: 0, width: 30, height: 30)
favoriteButton.image = .star

let customFavoriteButton = UIBarButtonItem(customView: favoriteButton)
navigationItem.setRightBarButton(customFavoriteButton, animated: true)

At this point ShineButton is not showing but when clicked it is shining like very small

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