-
Notifications
You must be signed in to change notification settings - Fork 43
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
Define Pressable Button colors via XIB/Storyboards #7
Comments
@gearoidoceallaigh Thanks for opening an issue! At the moment there is no way to do this. My thinking when using ColorSet was that the button + shadow colors should only be defined together. Having two separate properties increases the risk of forgetting to set one after setting another. For instance:
as opposed to
where you could forget to set any of these. The drawback, as you mentioned, is that |
I too ran into this problem and 'fixed' it like this: Swift 4 ahead. I hope this is helpful for someone. After you copy paste this into your project, you now also have a buttonColor inspectable in your IB for PressableButton. I might open a PR with a proper implementation, if there's enough interest.
|
I'm able to change the colours on a
FlatButton
but not aPressableButton
via Storyboards.Is there a way to do this without dropping into the code?
Great library, thanks :)
The text was updated successfully, but these errors were encountered: