SDWebImage / SDWebImageSwiftUI

SwiftUI Image loading and Animation framework powered by SDWebImage
https://sdwebimage.github.io/SDWebImageSwiftUI
MIT License
2.09k stars 214 forks source link

_ #311

Closed AppInstalleriOSGH closed 3 months ago

dreampiggy commented 3 months ago

WebImage is generic struct, is your own code issue which override this API.

A stupid way is to use like this (But I don't know what you want to do, your usage is not, well, correct ? The resizable() should not apply to this struct, but the closure returned image)

public func WebImage<T>(_ url: URL?) -> WebImage<T> where T: View {
}

Update: We supports you to use resizable on the WebImage itself, and inherited to the phase.image returned by the closure.

Read SwiftUI.AsyncImage and check their API. The new WebImage actually match their API usage.