Snap icon indicating copy to clipboard operation
Snap copied to clipboard

Invisible/visible state animation

Open nakp opened this issue 5 years ago • 1 comments

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 avatar Nov 16 '20 23:11 nakp

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

nakp avatar Nov 17 '20 21:11 nakp