scenee / FloatingPanel

A clean and easy-to-use floating panel UI component for iOS
MIT License
5.61k stars 509 forks source link

after tap-to-dismiss action of the backdrop view, Move a position with an animation not working #559

Closed iosHumhae closed 2 years ago

iosHumhae commented 2 years ago

Display via fpc.move function does not work after closing the floating panel by tapping the background. How can I solve this?

scenee commented 2 years ago

If it is presented as a child view controller: The dismiss action calls FloatingPanelController.removePanelFromParent() internally. So you need to call addPanel(toParent:) again to present a panel.

If it is presented as a modality: The dismiss action calls FloatingPanelController.dismiss as its name implies . So you need to present a panel again.

iosHumhae commented 2 years ago

cool! The solution you gave me was very helpful in solving my problem.