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

Request: Make HeroTransition::complete(after: TimeInterval, finishing: Bool) public #746

Open
IainS1986 opened this issue Sep 7, 2022 · 0 comments

Comments

@IainS1986
Copy link

This isn't a bug, but a feature request.

Would it be possible to make the complete(after: TimeInterval, finishing: Bool) public instead of just complete(finishing: Bool)

The main use case I have is when using interactive transitions. If you have a transition thats interactive, and say you finish your gesture when the progress is up to 0.8 or at least there abouts, due to being so 'close' to the end, the animation sometimes feels like it 'snaps' to the finish.

Ideally, I'd like to dynamically alter the duration a bit and allow the animation to take longer to finish that final bit of progress than it would normally do when not interacting.

I tried applying a duration modifier when interacting, but I think totalDuration is only calculated at the start - so maybe the alternative to be able to recalc totalDuration on the fly?

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

1 participant