Skip to content

ColorScheme or Asset Catalog support #102

Answered by aabewhite
cwinters8 asked this question in Q&A
Discussion options

You must be logged in to vote

.colorScheme and .preferredColorScheme support are in the latest SkipUI (0.6.0). Use Xcode's File -> Packages -> Update to Latest to get it.

Supporting this required some modifications to the Main.kt file that gets generated with skip init, though. Since you have an existing project, you'll have to edit its Main.kt. Instructions for doing so are in the SkipUI README's new Preferred Color Scheme topic:

https://github.com/skiptools/skip-ui/blob/main/README.md#preferred-color-scheme

Please let us know if you have any trouble!

Replies: 2 comments 7 replies

Comment options

You must be logged in to vote
3 replies
@aabewhite
Comment options

@aabewhite
Comment options

@cwinters8
Comment options

Comment options

You must be logged in to vote
4 replies
@cwinters8
Comment options

@cwinters8
Comment options

@cwinters8
Comment options

@cwinters8
Comment options

Answer selected by cwinters8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants