SyntaxFix
Write A Post
Hire A Developer
Questions
Swift 4 version of 4redwings's answer:
let testString = "This is a test string" let somedata = testString.data(using: String.Encoding.utf8) let backToString = String(data: somedata!, encoding: String.Encoding.utf8)