-
Notifications
You must be signed in to change notification settings - Fork 295
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
Is there a way to change the image size #16
Comments
I solved it by doing this in DOFavoriteButton.swift:
First you have to define the |
@vicorente I implemented the above code, but I don't see any button on the view. Is this something to do with defining the |
Sure!! Show me your code here... |
I defined a frame for
And I have implemented your code in DOFavoriteButton.swift. But nothing shows up in the simulator. |
Create yout likeButton like this:
After this check that you add the button as a subview of any view in your view controller. |
Thanks! I'll try this. |
In create layer function, just change the imageFrame like private func createLayers(image image: UIImage!) { Then it will work. Dont know why the developer kept those parameters but above parameters are correct. |
First off, thanks for sharing this!
Is there a way to change the image size? Increasing the button size does not work.
The text was updated successfully, but these errors were encountered: