Skip to content

Conversation

dreampiggy
Copy link
Collaborator

Add support for Animation Control of AnimatedImage !

This feature is really useful for animation, like something logic to stop animation when doing transition or hover. It's quite common in iOS App.

This API design use the Binding of SwiftUI. I reference the built-in View like Toggle and Sheet. Which make it easy for user to use (Just one line of code)

@State var isAnimating: Bool = true // I just need to touch this status body { AnimatedImage(url: URL(string:url), options: [.progressiveLoad], isAnimating: $isAnimating) } 
@dreampiggy dreampiggy added the enhancement New feature or request label Oct 5, 2019
@dreampiggy dreampiggy changed the title Feature animatedimage animating control Supports AnimatedImage animation control using of SwiftUI Binding Oct 5, 2019
@dreampiggy dreampiggy merged commit df7728d into master Oct 5, 2019
@dreampiggy dreampiggy deleted the feature_animatedimage_animating_control branch October 5, 2019 08:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
1 participant