WCLShineButton icon indicating copy to clipboard operation
WCLShineButton copied to clipboard

Can't set ShineButton to RightBarButtonItem

Open bdeppy opened this issue 7 years ago • 0 comments

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

bdeppy avatar Oct 25 '18 09:10 bdeppy