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
IBAnimatable Themes #500
Comments
I thought about this but haven't found a way to set the default values within the protocol without doing it in subclasses. It will be great if we can do it. then we don't need to set a lot of |
I try something like that using a CSS parser (like 100mango/SwiftCssParser, ...) |
Thank you for sharing SwiftCssParser! I wanted to look at something like this! |
I play also with https://github.com/146BC/StyleKit, https://github.com/akane/Gaikan I try also to edit storyboard XML (by modifying https://github.com/krzyzanowskim/Natalie) to edit some attributes to make a "theme change" |
@phimage If we use a |
If you parse your own style sheet(in code or file using the good Bundle to read file) and apply directly to some view attributes, yes it will work on the current view |
IBAnimatable Themes
It would be nice to be able to set default values for IBDesignable classes without having to subclass.
How?
I'm thinking we can add a property:
This would be the name of a
.plist
file to use for the configuration.Then we could parse this file and apply all the values.
Some limitations:
UIImage
-- actually, we could just use the IMG nameThe text was updated successfully, but these errors were encountered: