9 Commits

Author SHA1 Message Date
Jeff Verkoeyen
86a8c97dc7 Remove all pre-iOS 12 logic.
PiperOrigin-RevId: 400788645
2021-10-04 12:41:07 -07:00
Jeff Verkoeyen
c53f44398e Optimizing imports
PiperOrigin-RevId: 357185618
2021-02-12 07:29:28 -08:00
Andrew Overton
b22eef526f [BottomNavigation] Move MDCBottomNavigationBarController to main podspec
PiperOrigin-RevId: 326698570
2020-08-14 11:48:35 -07:00
Eric Lee
815d3745eb [BottomNavigation] Adds state restoration support to the bottom navigation bar controller. (#8117)
Enables clients to opt-in to state restoration by providing `restorationIdentifier` values for the Bottom Navigation controller's child view controllers.

Closes #8265
2019-08-09 12:36:19 -04:00
Eric Lee
3b54f2c6ea [BottomNavigation] Renames functions and fixes comments. (#8133) 2019-08-03 07:48:12 -04:00
Robert Moore
9e936bfb62
[BottomNavigation] Test for additionalSafeAreaInsets behavior. (#8113)
This test ensures that the `additionalSafeAreaInsets` property of child VCs is
correctly set to account for the bottom navigation bar.

Confirmation of #8112
2019-07-31 08:30:53 -04:00
Robert Moore
9ed52651c4
[BottomNavigation] Store child VCs in childViewControllers. (#7992)
The `MDCBottomNavigationBarController` was incorrectly only adding its child
view controllers as "proper" child view controllers when they became the
selected view controller. This resulted in difficulties when attempting to
perform state restoration within apps with the controller as the root view
controller.

Closes #7984
2019-07-24 13:30:49 -04:00
Eric Lee
d049bc882a [BottomNavigation] Prevents the client from setting the navigation items directly when using the bottom navigation bar controller. (#6773)
Observes the navigation bar's items property and if at anytime the new items do not equal the view controllers' tab bar items an exception will be thrown.

Closes #6785
2019-03-11 15:51:28 -04:00
Robert Moore
1b98e1ea21
[BottomNavigation] Move controller out of /beta. (#6501)
Instead of having separate `/beta` file paths for beta code, the beta files
can be excluded from CocoaPods. Also adding targets to bazel since it was trying to compile all of the source files (and failing).

Part of #4160
2019-01-29 11:33:51 -05:00