Closed
Description
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
}