Skip to content

WebImage can not use Custom SDWebImageManager #70

Closed
@takep2

Description

@takep2

I want to use WebImage with Firebase Storage API.
For that, WebImage needs to be able to use Custom SDWebImageManager with modified loader.

In the sd_internalSetImageWithURL method of SDWebImage, the following code is used to use Custom SDWebImageManager set in the context.

        SDWebImageManager *manager = context[SDWebImageContextCustomManager];
        if (!manager) {
            manager = [SDWebImageManager sharedManager];
        }

However, ImageManager of SDWebImageSwiftUI always uses the default SDWebImageManager by the following code.

var manager = SDWebImageManager.shared

I hope to add the following code to the load method in the ImageManager so that the manager set in the context can be used.

        if let customManager = context?[.customManager] as? SDWebImageManager {
            manager = customManager
        }

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions