Closed Nightstep closed 4 years ago
@Nightstep It happen because you need to assign viewControllers
before add TabBarController into view hierarchy. I've improve error handling for that case, so now it will not crash. But still for correct work you need to assign your tab view controllers
It crashes right on init()
call. There's no way to add viewControllers because the compiler just doesn't go to the next line of execution.
Xcode version: 11.1 Library version: 5.1.0 Crash on
RAMAnimatedTabBarController.init()
Good day, Getting crash in RAMAnimatedTabBarController init call. The thing is tab bar immediately calls
viewDidLoad()
method, which callsinitializeContainers()
. The line 135 expects that tabbar.items is in range 0..5, but it's alwaysnil
. Thats why it always throwsfatalError("More button not supported")
There's no other initializers with containers injection as well. (init(tabs: [UIViewController])
)Code snipper which causes fatal error: