Unicode fast special characters in string literals

I am trying to do an experiment in Swift as written in the Apple developer documentation: let encircledLetter: Character = "i\u{20DD}"

But unfortunately the compiler reports an error

\u escape sequence expects 4 hex digits to follow it 

      

I'm brand new to Swift, so I don't know if I missed something here.

+3


source to share


1 answer


The problem is that you are still using the beta version of Xcode. Update it to the latest version and the problem goes away.



+3


source







All Articles