Replies: 2 comments 16 replies
-
Well I learned a lot trying to figure out the best approach to this, and finally settled on something I can work with... The missing piece for me was the
One caveat is that this only works for iOS 17+ due to use of the I also haven't thoroughly tested all of the hierarchical system colors, but they appeared to work in my limited testing (I don't use them in my own projects) I still think that color sets are the ideal and would reduce a good bit of upfront friction for people like myself who like to start projects this way by setting up the whole UI styling framework so it's in place on every |
Beta Was this translation helpful? Give feedback.
-
Sorry, they are in fact supported now! Use File > Packages > Update to Latest Versions to make sure you have an updated skip-ui version |
Beta Was this translation helpful? Give feedback.
-
Hello!
I see that asset catalog image sets are supported with light and dark variants. It looks like color sets are not yet supported? Are there any plans to add that?
I did see in this discussion that you added
colorScheme
support that could be used to achieve the same effect, but it requires defining each color programmatically and observingcolorScheme
in each view, and writing ternary switches in each modifier. (Maybe there's a simpler way that I'm not aware of)Mostly I'm just trying to decide the best way to approach building my app with full light/dark variants, which is typically pretty simple in SwiftUI with color sets.
Beta Was this translation helpful? Give feedback.
All reactions