I have TabBarViewController and with tap on several of tabBarItems I must to check, if authorize user. If user is not authorised (it's a simple function returns true/false), I must present him viewController with authorisation, but if he is authorised, viewController will not must present. Questions: 1) If I do it in class UITabBarController of my TabBarController in func tabBar(_ tabBar: UITabBar, didSelect item: UITabBarItem) {}, then first was loaded view of tabBarItem, and then I get my authorisation vc. How could I do it and where? screen of my code
2) How can I present from my authorisation vc (it has not tabbar) my view of tabBarItem? If I do it simply with self.present(animated: true, completion: nil), then with presenting I lose bottom tabBar. what I need screen and what I have screen