Skip to content

Supports AnimatedImage animation control using of SwiftUI Binding #14

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Oct 5, 2019

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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant