FloatingPanel icon indicating copy to clipboard operation
FloatingPanel copied to clipboard

UITabBarController

Open harjit8016 opened this issue 2 years ago • 1 comments

Not able to add the float view controller on TabBarController

Expected behaviour

This should work on tab bar controller

Actual behaviour:

when add the container to the tab bar view controller getting this error:- eg: playerFloatingContainer.addPanel(toParent: self, animated: true)

"UITabBarController displays child view controllers with a radio-style selection interface"

Steps to reproduce

Code example that reproduces the issue

How do you display panel(s)?

  • Add as child view controllers
  • Present modally

How many panels do you displays?

  • 1
  • 2+

Environment

Library version

Installation method

  • CocoaPods
  • Carthage
  • Swift Package Manager

iOS version(s)

Xcode version

harjit8016 avatar Jun 02 '23 09:06 harjit8016

Unfortunately, it's not possible because UITabBarController recognizes any child view controller as a tab bar content. Alternatively you can add a pane each child view controller of a UITabBarController.

If you display a panel over UITabBarController, you have 2 options.

  1. Present a floating panel as a modality.
  2. Add a pane to the window. See also Samples app > Show Panel over Window

scenee avatar Jul 01 '23 06:07 scenee