Replies: 1 comment
-
Sounds like a certain method of A basic use can be found here. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
There is some code that I am looking to run when an image is downloaded for the first time. Basically, I am trying to set a property that requires the image to be downloaded. Instead of setting this property when I need to use it (as it takes a little bit to be calculated so I would rather not have to calculate it every time), I would like to set the property right after the image downloads to the cache so it is instantly available when I need it . However being that I have multiple calls to Kingfisher in many different view controllers, it is unknown which view controller will trigger the initial download of the image (it would be whichever screen the user ends up on first that uses Kingfisher, and the others will pull from the cache). Is there somewhere I can put code that is run when an image is first downloaded?
Beta Was this translation helpful? Give feedback.
All reactions