createwithflow/FlowCommoniOS

how to access "reversed"

Closed this issue · 2 comments

We are updating our repos and noticed that the "reversed" Timeline property is no longer available in the latest update.

Is there a recommended way to play an animation in reverse?

Example of usage:

var clockcheck: ClockcheckTimeline!
clockcheck = ClockcheckTimeline(view: clockbegin, duration: 0.5)
clockcheck.reversed.reset()
clockcheck.reversed.play()

Thank you!

Hey, apologies for the delay.

The reversed property hasn't been taken out of the repo...

You can see it here:

The best way to play an animation in reverse is to store the reversed timeline like so:

let reversed = timeline.reversed

Then, you can call:

reversed.play()

That said, you should check out our iOS Custom Button export, it has a great approach for handling exactly the scenario you're working on.

Closing as there hasn't been any activity here in a while.
Feel free to reopen if this isn't resolved.