Snap
Snap copied to clipboard
Invisible/visible state animation
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
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