Exposing fetchImage to prefetch image
luatnd opened this issue · 2 comments
luatnd commented
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?
chris-swift-dev commented
Hey,
thanks for your feedback. I like your idea. I just published version 4.0.0. You will like it ;)
luatnd commented
Many thanks, love your work 👍