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; ie
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.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.