Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UITabBarController #591

Open
harjit8016 opened this issue Jun 2, 2023 · 1 comment
Open

UITabBarController #591

harjit8016 opened this issue Jun 2, 2023 · 1 comment

Comments

@harjit8016
Copy link

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

@scenee
Copy link
Owner

scenee commented Jul 1, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants