For some reason I need to insert UITabBarController
into conatiner view.
When UITabBarController
is presented itself (VC with container view is skipped) it works perfectly and everything is being showed. But when I insert it into UIView
like below UITabBar
exists in Debug View Hierarchy but it is not visible in the app. In both cases attributtes of UITabBar in object inspector are the same.
private var tabBar: TabBarController!
@IBOutlet private var tabBarContainer: UIView!
...
addChildViewController(tabBar)
tabBarContainer.addSubview(tabBar.view)
tabBar.didMove(toParentViewController: self)