Skip to content

onSuccess is not executed if already cached #76

@foolbear

Description

@foolbear

I want get the uiimage of remote and save it to the photo library, onSuccess is a good solution, but I found that onSuccess is not executed if already cached, I cannot get the uiimage from here every time. Is this a issue or is there another solution for this?

WebImage(url: URL(string: "https://nokiatech.github.io/heif/content/images/ski_jump_1440x960.heic"))
        .onSuccess { image, cacheType in
            // Success
            print("\(image), \(cacheType)")
        }

and cacheType = SDImageCacheType?
20-02-01 16:11:19 CardView[37], ContentView: <UIImage:0x2830f3060 anonymous {1310, 256}>, SDImageCacheType

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingusage

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions