I have some legacy code that uses the following code:
init?(path: String, delimiter: String = "\n", encoding : UInt = String.Encoding.utf8, chunkSize : Int = 4096) {
.....
self.encoding = encoding
....
let line = NSString(data: buffer as Data, encoding: encoding)
Xcode is telling me that it can't coerce String.Encoding.utf8 to UInt. Yet the NSString takes encoding as a UInt. And I can't find a constant that represents a legal encoding value of utf8 on the Developers web page about allowed encoding values.
Thanks for any help on getting the let line statement above work.