title: tabBarController didSelect does not get called
body: <p>I am having a problem with</p>
  
  <p><code>tabBarController(_ tabBarController: UITabBarController, didSelect viewController: UIViewController)</code></p>
  
  <p>delegate firing. The problem lies when I try to use self.tabBarController?.selectedIndex and change a tab programmatically. Once I use selectedIndex and go back to a previous tab and click on the tabBarItem the delegate does not fire anymore. Delegate only fires if I do not use selectedIndex but once i use it the didSelect delegate never fires again even if I tap on the tabBar item. Any suggestions? Thanks for your help!</p>