-
Notifications
You must be signed in to change notification settings - Fork 381
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
Deprecate setBackgroundColor from UIButtonExtensions #310
Comments
I okay it's inherited from UIView. But what if I want different different colors for different states? Especially I faced this method when I had one color for the button, and that color but with less alpha for highlight state. |
Hmmmmm totally makes sense! |
Wait, lets not disregard this yet. There might be a better way to achieve this with shorter code in new swift. I'm not sure how but lets think about it. Lets try to solve this without using UIGraphicsImageContext |
This method is useless since
UIButton.backgroundColor = .black
exists since iOS 8.The text was updated successfully, but these errors were encountered: