Fix crasher within tab example
Triggering loadView in init causes a crash when instantiating through a nib
MODIFY
components/Tabs/src/MDCTabBarViewController.m
components/Tabs/src/MDCTabBarViewController.m
@@ -78,7 +78,7 @@ const CGFloat MDCTabBarViewControllerAnimationDuration = 0.3f;
- (nullable instancetype)initWithCoder:(NSCoder *)aDecoder {
self = [super initWithCoder:aDecoder];
if (self) {
- self.viewControllers = [aDecoder decodeObjectOfClass:[NSArray class]
+ _viewControllers = [aDecoder decodeObjectOfClass:[NSArray class]
forKey:MDCTabBarViewControllerViewControllersKey];
self.selectedViewController =
[aDecoder decodeObjectOfClass:[UIViewController class]

Fix crasher within tab example (#3370)

Triggering loadView in init causes a crash when instantiating through a nib