Chp 41 - UIImageView extension for downloading images error

I’m getting 2 errors on the following line: let data = try? Data(contentsOf: url),… Just adding the new file (UIImageView+DownloadImage.swift) to the project fires off the error.

I even get them when I copy and paste the code from the RW source code. There are no errors when I run the RW source code, only when I try to incorporate into my working project. Is there something missing elsewhere in the project that’s preventing this from working?

Thanks

Screen Shot 2020-03-28 at 2.21.30 PM

Screen Shot 2020-03-28 at 2.22.02 PM

I figured it out. There was a name conflict With another declaration.

@malamin Really glad you sorted it out! Cheers! :]

This topic was automatically closed after 166 days. New replies are no longer allowed.