Closed Pireax closed 5 years ago
It might make more sense to use a category for this, let me know what you think.
Hi @Pireax. Thanks for your fix. I think it makes sense, although I've tested UITabBarController case before, it must be a change in latest iOS versions. I'll merge it.
The UITabBarController's property childViewControllers only contains the visible tabs, when there are more than 4 tabs on a smaller screen a more tab gets created. This screws with the injection and ignores the tabs that are now in the more tab. This pull request tries to fix this issue by instead calling the UITabBarController's viewController property which does contain the other tabs.