I have SearchBar and TabBar on a view which i created using CosmicMind Swift Material framework for swift (https://github.com/CosmicMind/Material). Below is the code i have for setting up the view:
window = UIWindow(frame: Screen.bounds)
let tabBarControllers = [MySearchBar(rootViewController:ViewController2()), MySearchBar2(rootViewController:ViewController1())]
window!.rootViewController = TabBarController(viewControllers: tabBarControllers)
window!.makeKeyAndVisible()
So basically, I have tab bar, which has search bar which in turn has a view. I created a xib for the view so that I can drag and drop and position things with the interface builder. The problem I am running to is that, the tab bar is covering some of my labels. See the screenshot below
When i run my app I get the view shown below. As you can see the label 2 is out of view, I have tried everything possible but cant figure it out and to make the view fit between the search bar and the tab bar correctly
Any help will be greatly appreciated