Post

Replies

Boosts

Views

Activity

Reply to Develop in Swift Open Restaurant program has issues
I found a solution that, while not solving the problem, does let me continue on the project. It seems that older versions of the Open Restaurant app do not have this bug. I found someone who uploaded an older version in his old project files here - https://github.com/leveson/app-development-with-swift. So while the problem persists, at least there's a workaround for those who need it now? Still, the current version needs to be fixed, or have the guide changed. Can't find any contact information to the author, so I hope this is the right place for this?
Topic: Programming Languages SubTopic: Swift Tags:
May ’21
Reply to Develop in Swift Open Restaurant program has issues
Same as in the material (Develop in Swift Data Collections): func fetchImage(url: URL, completion: @escaping (UIImage?) - Void) {     let task = URLSession.shared.dataTask(with: url) { (data, response, error) in       if let data = data, let image = UIImage(data: data){         completion(image)       } else {         completion(nil)       }     }     task.resume()   } I tried modifying the URL with url.deletingPathExtension() and the resulting URL returns the image in the browser, but it doesn't in my code.
Topic: Programming Languages SubTopic: Swift Tags:
May ’21