FSPagerView icon indicating copy to clipboard operation
FSPagerView copied to clipboard

Support prefetching

Open jdanthinne opened this issue 5 years ago • 6 comments

As this view uses a UICollectionView internally, wouldn't it be great if prefetching was supported? We could then preload remote images.

jdanthinne avatar Nov 08 '18 13:11 jdanthinne

@jdanthinne Did you solve the pre-fetching remote images problem with FSPagerView?

yojkim avatar Feb 27 '20 10:02 yojkim

@yojkim Yes, but not with FSPagerView itself unfortunately.

jdanthinne avatar Feb 27 '20 10:02 jdanthinne

@jdanthinne could you recommend another library that you use to solve this problem? 🙇

yojkim avatar Feb 27 '20 10:02 yojkim

@yojkim Not using another library, but just preloading all the images with URLSession (or Alamofire, SDWebImage, pick yours).

jdanthinne avatar Feb 27 '20 11:02 jdanthinne

@jdanthinne Loading all images at once? Hmm... okay! thank you :D

yojkim avatar Feb 27 '20 12:02 yojkim

@yojkim I know, not ideal, but if you have only 2-3 images, I think it's ok.

jdanthinne avatar Feb 27 '20 12:02 jdanthinne