You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How do I add a child panel which makes the root panel invisible underneath a la Apple Maps.
Expected behavior
I expected a child VC to behave like Apple Maps, where only one panel is ever visible.
Actual behavior
Adding a child FloatingPanel to a FloatingPanelController results in a stack where both floating panels are visible, whereas in Apple Maps, only one panel is ever visible at any one time.
Steps to reproduce
Full Example Code
class ViewController: UIViewController, FloatingPanelControllerDelegate {
Actually, you are able to handle 2 panels by yourself to achieve this behavior. For example, the underneath panel hides after a detail panel shows and then the underneath panel shows again without its animation when a close button in the detail panel is tapped. Note that you need to keep an instance of FloatingPanelController for the underneath panel even when it's hiding and a detail panel is showing.
Description
How do I add a child panel which makes the root panel invisible underneath a la Apple Maps.
Expected behavior
I expected a child VC to behave like Apple Maps, where only one panel is ever visible.
Actual behavior
Adding a child FloatingPanel to a FloatingPanelController results in a stack where both floating panels are visible, whereas in Apple Maps, only one panel is ever visible at any one time.
Steps to reproduce
Full Example Code
How do you display panel(s)?
How many panels do you displays?
Environment
Library version
Latest at writing
Installation method
iOS version(s)
16.1
Xcode version
14.1v3
The text was updated successfully, but these errors were encountered: