-
Notifications
You must be signed in to change notification settings - Fork 155
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
Corner radius won't return to original state #52
Comments
I will check this |
I have tested in the demo project with this code:
|
@AladinWay make sure you add a new button on the storyboard and set corner radius only programmatically. Just tried and I'm able to reproduce the same issue, the only way to fix it is doing what I mentioned above. |
Yes, I have removed the cornerRadius from the storyboard in the example above. Can you please provide an example project based on the demo with the issue ? |
I have the same problem, have you found a solution? |
I could not reproduce it. I will give it another try and will push a fix if needed. |
@ivai96 yes! I was able to fix it. you'll have to edit the pod files, under |
@brunohenriquesk1 @ivai96 can you please confirm if adding to
in just after
solves the issue for you ? |
@brunohenriquesk1 @AladinWay Sorry for the late response, I have been reassigned to another project, but now that I am back I tested both solutions and they both work for me 👍 Thank you guys! :) |
If you set button corner radius programmatically it won't return to its original state.
I suggest under
setOriginalState
method setself.layer.cornerRadius = layer.cornerRadius
instead ofself.cornerRadius
, this way it will go back to original state if you set programmatically or via storyboard.The text was updated successfully, but these errors were encountered: