chris-swift-dev/RemoteImage

Exposing fetchImage to prefetch image

luatnd opened this issue · 2 comments

Hi,
My app need to prefetch image and store it in cache.
After that we display the image later.

I tried to

let url:String = "https://..../image.jpg"
let imageType = RemoteImageType.url(URL(string: url)!)
let service = RemoteImageServiceFactory.makeRemoteImageService()
service.fetchImage(ofType: imageType)

But xCode notice me:

'fetchImage' is inaccessible due to 'internal' protection level

Can we expose the fetchImage func without leading to any issue?

Hey,

thanks for your feedback. I like your idea. I just published version 4.0.0. You will like it ;)

Many thanks, love your work 👍