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

Added spring based animation options to the sheet transition animations #107

Merged
merged 1 commit into from Oct 7, 2020

Conversation

mgrider
Copy link
Contributor

@mgrider mgrider commented Oct 7, 2020

These are configurable via the SheetOptions object. I tuned them to be pretty subtle by default, but of course they could also be turned off by default.

If you turn down the dampening, you'll see a design flaw, in that the sheet will bounce up away from the bottom edge of the screen. I couldn't think of an easy way to fix that. With a subtle bounce, I think it looks fine.

In theory, this addresses #6

…ions to the SheetOptions, and used them in various transitions.
Copy link
Owner

@gordontucker gordontucker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I considered doing this, but ran into the same issue you mentioned. I'll give it a thought and see if I can come up with a workaround that handles the majority of the cases. Thanks for the contribution.

@gordontucker gordontucker merged commit 7f48a3c into gordontucker:main Oct 7, 2020
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

Successfully merging this pull request may close these issues.

None yet

2 participants