Swipe left, right, up, down to dismiss
I was wondering if you could provide an example of how to remove the panel by swipe left, right, up, and down. That'd be very helpful!
Have you tried FloatingPanelController.isRemovalInteractionEnabled?
Yes @SCENEE, but this only enables a dismiss by the swipe-down gesture. How can I dismiss the panel by swiping left/right?
Alright, @michalraska. You can layout a panel positioned at top, left and right by specifying FloatingPanelLayout.position and then are able to remove the panel by swipe up, left, or right 👍
If you use a bottom positioned panel, you need to implement a swipe gesture to dismiss the panel by swiping left/right on the surface view or the root view(FloatingPanelContorller.view) while keeping in mind gestures in a content view controller for the panel. FloatingPanelPanGestureRecognizer.delegateProxy might help you 😌