When editing a source file with a Swift color literal, Xcode shows a square filled with the color:
If I prefer to see the raw text representation of the literal; i.e.
textColor = #colorLiteral(red: 1.0, green: 1.0, blue: 1.0, alpha: 1.0)
is there a way to have Xcode display the text representation instead? I can't find an Xcode editor setting that controls this.
I doubt that there is a setting.
This is more a workaround than a solution:
⌘C the color square – which copies the text – and paste it as comment
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With