This code is from:
if let resultOfURL = try? String(contentsOfURL:myURL!, encoding: String.Encoding.utf8) {
Throws this error:
'init' has been renamed to 'init(describing:)'
Any help? Many thanks!
According to the Swift 3 Migration Guide ,
Users may need to manually transfer calls to String (contentsOfURL: usedEncoding :) to String (contentsOf: usedEncoding :)
Source: https://habr.com/ru/post/1652113/More articles:Can I manage partial class objects using STL containers? - c ++How to print Unicode character in C encoded using UTF8? - cScala The future is for understanding, synchronizing mixes and asynchronous - scalaPython: recursive state check - pythonHow to make a "thick jar" project Maven? - javaBootstrap switches don't work - htmlHow to use Reset password functionality in API 2 web interface - c #WooCommerce brand taxonomy terms list in drop-down list - phpAcceleration integration in stack toolchain - haskellGoogle Maps API Warning: SensorNotRequired - javascriptAll Articles