Skip to content

Bug: State/Bindings not working in AnimatedImage view type initializers #61

Closed
@TysonParks

Description

@TysonParks

First of all, thanks so much for making SDWebImage and quickly porting it to SwiftUI! I can't tell you how empowering this framework is for the current app I am building.

I've found that binding to the initializers for AnimatedImage view types are not updating the view. I've tested the (url:) and (name:) initializers. I assume that this has to do with AnimatedImage being based on UIKit/AppKit UIView representable instead of SwiftUI's native Image view type because this issue does not occur with the WebImage view type.

Here is some test code to quickly demonstrate the issue:
https://gist.github.com/TysonParks/e6798fe0e5705c44a0258f77315beac5

This is my first time reporting an Issue on Github so my apologies for any noob mistakes.

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions