Use Custom Colours From Assets Without Relying On Strings
Daily Coding Tip 293
Before Xcode 15 you could create a Color Set in your Assets catalog, but you could only use it like this:
.foregroundColor(Color("exampleColour"))Now it’s possible to do something that doesn’t involve raw strings, and therefore isn’t in danger of becoming an invalid colour due a typo.
The first thing I need to do is create a…


