We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I am using this code to display an image on the button
if let image = UIImage(named: "heart-smile") { likebutton.image = WCLShineImage.custom(image) }
This simply does not work but it does if you change your button to a UIButton instead of a WCLShineButton. This is a bug
UIButton
WCLShineButton
The text was updated successfully, but these errors were encountered:
Hi! A little bit late but just in case someone is reading:
You have to use the case in enum defaultAndSelect(UIImage, UIImage)
defaultAndSelect(UIImage, UIImage)
In your example:
if let image = UIImage(named: "heart-smile") { likebutton.image = .defaultAndSelect(image, image) }
In case you want a different image when select and deselect just change up to you the first or the second image of the enum.
Sorry, something went wrong.
No branches or pull requests
I am using this code to display an image on the button
This simply does not work but it does if you change your button to a
UIButton
instead of aWCLShineButton
. This is a bugThe text was updated successfully, but these errors were encountered: