FloatingPanel icon indicating copy to clipboard operation
FloatingPanel copied to clipboard

Apple Maps behaviour

Open reni99 opened this issue 5 years ago • 0 comments

Description

I would like to have a similar behaviour as Apple's Maps app has:

Expected behavior

If you swipe the panel from .tip up with high velocity, it should move to .full. If you swipe the panel from .tip up with low velocity, it should move to .half.

Similarly, if you swipe the panel from .full down with high velocity, it should move to .tip. If you swipe the panel from .full down with low velocity, it should move to .half.

Actual behavior

The panel does not take into account velocity when moving to a targeted position. Or maybe I have overlooked a delegate or this behaviour can be archived with with a custom FloatingPanelBehavior?

Thank you :)

reni99 avatar Apr 03 '20 08:04 reni99