Post

Replies

Boosts

Views

Activity

Reply to Color literal not displaying as Color Swatch?
Till XCode 12, XCode auto-suggests a property by the name of ColorLiteral. When we tap on it, it uses to turn into a swatch. But after that, it is removed from the XCode. Now, we need to write "#colorLiteral()" and that will turn into a color swatch. But this #colorLiteral does not work for every property. As it is clear from pictures shared by other people it just turns into a this state: #colorLiteral(red: 0.4842972159, green: 0, blue: 0, alpha: 1)
Jul ’23