Closed richpressler closed 7 months ago
This is the v3.0.0 syntax, use v3.0.0-beta.2
or above
For 2.x syntax, check the history tag for README 😂 https://github.com/SDWebImage/SDWebImageSwiftUI/tree/2.x
Yep, that's all it was. Swift package manager grabs the 2.x.x version. Not going to use beta versions in prod so this solves my issue
The code in the documentation:
Already produces the errors that
Trailing closure passed to parameter of type 'Binding<Bool>' that does not accept a closure
- it seems thatWebImage()
does not accept a trailing closure when given aurl:
parameter. Additionally, there is an error regardingplaceholder: { ... }
being an extraneous trailing closure. Without the added closures, using someonSuccess
andonFailure
handlers, the images seem to download fine, but nothing renders, because that seems to be handled in those closures that aren't working. What's going on here? I've tried 2.2.3 and 2.0.0