UITabBarController
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
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.
- Present a floating panel as a modality.
- Add a pane to the window. See also Samples app > Show Panel over Window