I have my iOS app's colors called out as Color Sets in an asset catalog (xcassets) file.
At runtime I'd like to be able to change the values of these Color Sets. Is this possible? and if so, how?
I've had no luck finding a way to do this.
You can't change colors in an asset catalog. If you want to change those colors at runtime you need to fetch the initial colors from the asset catalog, store it somewhere else (e.g. UserDefaults) and modify those.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With