Hi, I am trying to use color literal and it seems that is not working in Xcode 14.
Can anyone help me?
Br,
Bruno
Hi, I am trying to use color literal and it seems that is not working in Xcode 14.
Can anyone help me?
Br,
Bruno
If you are trying to use it in SwiftUI you will run into all sorts of issue since it is a UIColor as opposed to a Color.
To get a color literal to work you have to type:
#colorLiteral()
In SwiftUI you can do this:
and then use that in a View like this:
Color(myColor)