Код: Выделить всё
// In your main view controller where the tab bar is managed
func navigateToDetail()
{
let vc = SubSpaceHomeRouter.setupModule()
vc.hidesBottomBarWhenPushed = false
// Push the detail view controller
view?.push(vc, animated: true)
}
Код: Выделить всё
// In the function where you configure the "Home" tab view controller
private func getCompanyHomeViewController() -> HomeViewController {
let controller = HomeRouter.setupModule()
// Set tab bar item
controller.tabBarItem = createTabBarItem(icon:
UIImage(named: "icon_home")?.withRenderingMode(UIImage.RenderingMode.alwaysOriginal),
title: "edit_home".localized,
isProfile: true)
return controller
}
Подробнее здесь: https://stackoverflow.com/questions/784 ... le-as-home