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

Fix animation #32

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Fix animation #32

wants to merge 2 commits into from

Conversation

yccheok
Copy link
Contributor

@yccheok yccheok commented Jan 16, 2021

Hi Beryu,

I would like to propose a fix on animation.

The problem will become more obvious, if I increase the height of custom view, and make the animation time longer.

Here's the video before the proposed fix, and after the proposed fix.

The idea of the fix is, the delta Y animation should be the height of the bottom sheet, not the y-position of bottom sheet

Before

before.mov

After

after.mov

At the same time, I am also proposing adding self.itemContainerView.transform = CGAffineTransform.identity before setting frame. This enables us to clear off the transform from dismiss(), if we are re-using this CustomizableActionSheet

Thank you very much.

2) Reset transform from dismiss() if this CustomizableActionSheet is being reused.
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.

1 participant