I have integrated Applozic inside UITabViewController
and in viewDidLoad
method written the following code to do this:
var controllers = self.viewControllers
let story = UIStoryboard(name: "Applozic", bundle: Bundle(for: ALMessagesViewController.self))
let controller = story.instantiateViewController(withIdentifier: "ALViewController") as! ALMessagesViewController
let nav = UINavigationController(rootViewController: controller)
nav.tabBarItem.image = UIImage(named: "icon_chat")
nav.tabBarItem.imageInsets = UIEdgeInsets(top: 12, left: 0, bottom: -12, right: 0)
ALUserDefaultsHandler.setBackButtonHidden(true)
controllers?.removeFirst()
controllers?.insert(nav, at: 0)
self.setViewControllers(controllers, animated: false)
Here I am just creating instance of ALViewController
and use it as a tab control. Everything is working fine as we can see here.
However, the issue comes when I tap any chat to Open chat window or try to create new chat, create group and every other screens where the tab bar is hidden. Whenever, tabbar is hidden black bar comes at bottom as we can see here.
I need to remove that black bar at bottom when the tab bar is hidden. Would anyone please help me getting rid of that black bar?
I have gone through some answers but have to change Applozic storyboards which I feel is not a proper solution as my pod updates I need to repeat these changes. However, when I open any chat from APNS black bar does not come. Black bar only comes when I go to any other screens from main chat window in tab bar. I have not managed anything manually.