This code from before:
if let resultOfURL = try? String(contentsOfURL:myURL!, encoding: String.Encoding.utf8) {
Is now throwing this error:
'init' has been renamed to 'init(describing:)'
Any help? Thanks so much!!
According to the Swift 3 Migration Guide,
Users may need to manually migrate calls to String(contentsOfURL:usedEncoding:) to String(contentsOf:usedEncoding:)
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