Xcode – how to check if Color exists in asset catalog
I want to take a string and see if there's a matching color in my bundles asset catalog. If it exists the set a variable to that color and if not set to another. e.g let matchedColor = Color(string) ??…