The image caching was completely non-functional previously, for multiple reasons:
The cache initialization under iOS 13+ was incorrect (the file URL provided was not valid).
The URLs used as the cache keys were not stable because the URL manipulation code did not preserve the order of the query arguments.
This pull request fixes both issues.
It also fixed / improves the logic for dealing with the fact that a PhotoView might have been repurposed by the time an asynchronous image download completes.
And moves the JPEG decoding of downloaded images onto a background thread for smoother scrolling.
The image caching was completely non-functional previously, for multiple reasons:
It also fixed / improves the logic for dealing with the fact that a PhotoView might have been repurposed by the time an asynchronous image download completes. And moves the JPEG decoding of downloaded images onto a background thread for smoother scrolling.