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.
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)Update: We supports you to use
resizable
on theWebImage
itself, and inherited to thephase.image
returned by the closure.Read SwiftUI.AsyncImage and check their API. The new
WebImage
actually match their API usage.