FloatingPanel icon indicating copy to clipboard operation
FloatingPanel copied to clipboard

Weird behavior when floating panel presents view controller

Open flowbe opened this issue 4 years ago • 0 comments

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

  1. Present a floating panel
  2. Present modally another view controller from the floating panel
  3. Rotate to landscape
  4. Rotate back to portrait
  5. Close the view controller
  6. Observe the glitch
  7. 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

flowbe avatar Dec 02 '21 15:12 flowbe