I asked ChatGPT about color literals, and it responded me this.
In Swift, you can declare a color literal by using the #colorLiteral expression. Here is an example of how you might use this expression:
let color = #colorLiteral(red: 0.5, green: 0.5, blue: 0.5, alpha: 1.0)
The #colorLiteral expression is useful because it allows you to refer to a color in your code without having to hard-code its RGB or HSB values. This can make your code more readable and maintainable. Additionally, using color literals can also improve the performance of your app because the color is compiled directly into your app's binary, which means that it is loaded into memory only once and can be accessed quickly.
Is it really true that they are compiled directly into your app's binary? I've never heard of it.