I wrote a simple little extension to make all of the pre-defined colors in UIColor
available in SwiftUI.Color
. I wanted this mainly to get the new "adaptable colors" that support dark mode into SwiftUI. For example, with this extension you can write
Text("Hello").foregroundColor(.label)
instead of Text("Hello").foregroundColor(Color(UIColor.label))
Here's the gist.