Replies: 1 comment 1 reply
-
With more-careful reading of the code, it seems like the I managed to solve my problem by exposing my |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I've got a custom
dataLoader
that makes composite images from local resources. I've got aLazyImage
I'm using in SwiftUI that uses a custom pipeline that uses the customdataLoader
. Occasionally, I need to modify the behavior of thedataLoader
(by changing some simple internal state) without tearing down the SwiftUIView
. If I understand correctly, this is the use case forImagePipelineDelegate
.Are there examples of how to implement a
ImagePipelineDelegate
(especially for this simple case)? I tried following the code itself but it's not quite clear to me which functions I need to implement and how. Just implementingdataLoader(for:pipeline:)
appears to not be sufficient since none of my images render.Thank you!
Beta Was this translation helpful? Give feedback.
All reactions