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

Invisible/visible state animation #5

Open
nakp opened this issue Nov 16, 2020 · 1 comment
Open

Invisible/visible state animation #5

nakp opened this issue Nov 16, 2020 · 1 comment

Comments

@nakp
Copy link

nakp commented Nov 16, 2020

When the state is set to .invisible, instead of sliding down to height 0 and disappear, it fades and shrinks to the center (I assume the only view left is the Handle, then disappears. The same applies when setting the visible state back

@nakp
Copy link
Author

nakp commented Nov 17, 2020

I tried to change it adding .frame(maxWidth: .infinity) and .transition(.move(.bottom)) to the contained view and kinda works, but when I set the state to .invisible, because of how the hierarchy, the views are removed with a fade out animation, only the content view slides down, but the background and the handler are gone

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