FloatingPanel
FloatingPanel copied to clipboard
Weird behavior when floating panel presents view controller
Description
When a floating panel presents another view controller and we rotate the screen, we get this super weird bug where the floating panel doesn't appear anymore (except for a small glitch) but is in fact still present and re-appears when rotating the screen again.
https://user-images.githubusercontent.com/8288625/144450080-1735bf28-63b7-4f83-a461-99f1ae560b61.mp4
Expected behavior
Floating panel should behave normally and be visible on screen.
Actual behavior
The UI glitch presented in the video.
Steps to reproduce
- Present a floating panel
- Present modally another view controller from the floating panel
- Rotate to landscape
- Rotate back to portrait
- Close the view controller
- Observe the glitch
- Rotate again to restore the normal behavior
How do you display panel(s)?
- ~~Add as child view controllers~~
- Present modally
How many panels do you displays?
- 1
- ~~2+~~
Environment
Library version
2.5.0
Installation method
- ~~CocoaPods~~
- ~~Carthage~~
- Swift Package Manager
iOS version(s)
15.0
Xcode version
13.1