Skip to content
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

Repeating animations #14

Open
jeremytregunna opened this issue Aug 30, 2016 · 3 comments
Open

Repeating animations #14

jeremytregunna opened this issue Aug 30, 2016 · 3 comments
Assignees

Comments

@jeremytregunna
Copy link

I'm most likely just missing something, but I don't see any property that lets me specify that I want an animation and its sub animations to repeat. Is there something to help with this use case?

@AntonTheDev
Copy link
Owner

This is actually in the works on the dev branch. I am still thinking of the how to apply the syntax of FlightAnimator. Any recommendations would be highly appreciated.

The upcoming functionality will support the following flags:

var autoreverse : Bool- enable auto reverse)
var autoreverseCount : Int - specific count of time to reverse the animation
var autoreverseDelay : Double - delay to wait to start the reverse animation
var reverseEasingCurve : Bool - ability to invert the easing curve

@wess
Copy link

wess commented Aug 30, 2016

Could you not just use the default animation options or count with Float.infinity?

@AntonTheDev
Copy link
Owner

AntonTheDev commented Aug 30, 2016

Well, I as gonna approach like the UILabel's numerOfLines property.

Where once you enable autoreverse, the autoreverse count would determine it as:

  • 0, implies infinity, so it keeps repeating over and over again.
  • 1, default value, only repeats once
  • 2+, repeat a specific amount of times

@AntonTheDev AntonTheDev self-assigned this Aug 30, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants