14 Commits

Author SHA1 Message Date
Andrew Overton
b22eef526f [BottomNavigation] Move MDCBottomNavigationBarController to main podspec
PiperOrigin-RevId: 326698570
2020-08-14 11:48:35 -07:00
Jeff Verkoeyen
92254ea119 Rename all icons to an ic_<#name#> convention.
PiperOrigin-RevId: 308232277
2020-04-24 04:33:51 -07:00
Bryan Oltman
3b0bc4fda3
[BottomNavigation] Migrate MDCBottomNavigationBarColorThemer use to theming extension (#9142)
Migrate `MDCBottomNavigationBarColorThemer` logic to theming extensions to prepare for the eventual deletion of `MDCBottomNavigationBarColorThemer`.

Part of #9130
2019-12-06 12:43:55 -05:00
Robert Moore
da95087650
[BottomNavigation] Update example to demonstrate lazy loading. (#7991)
Updates the example to exercise lazy loading and some of the child VC appearance methods.

Part of #7984
2019-07-22 19:59:50 -07:00
Robert Moore
3b32d0c29c
[BottomNavigation] Add snapshot tests for Bottom Navigation controller. (#7963)
Adds snapshot tests to render child view controllers. Also updates the example
to demonstrate scrolling behavior.

## Dragons Example View Controller

|Before|After|
|---|---|
|![Simulator Screen Shot - iPhone X - 2019-07-18 at 17 22 05](https://user-images.githubusercontent.com/1753199/61500639-03bb6980-a981-11e9-97fc-b1f5df9106d9.png)|![Simulator Screen Shot - iPhone X - 2019-07-19 at 06 26 49](https://user-images.githubusercontent.com/1753199/61538460-49624b80-a9ee-11e9-9954-b5092b372d76.png)|

Prework for #6835
2019-07-19 07:02:32 -07:00
Yarden Eitan
efe61588a6
update (#7246)
We need to add @objc annotations to colorScheme and typographyScheme instances in our Swift examples, because we moved to Swift 4.2, the respondsToSelector won't find `setColorScheme:` and `setTypographyScheme:` setters otherwise.
2019-04-23 10:21:14 -04:00
Andrew Overton
c56d5d76d3
Add @objc annotations to get examples to show up in Dragons (#7168)
This is a follow up PR for #7166 adds @objc annotations to Swift catalogMetadata() methods, because the Swift 4 compiler no longer attempts to infer what methods should be visible to Objective-C. As a result of this change in the compiler, no Swift examples were showing up in Dragons after #7166. See this article: https://useyourloaf.com/blog/objc-warnings-upgrading-to-swift-4/ for additional context.
2019-04-17 21:35:43 -04:00
Robert Moore
5ca3f34742
[BottomNavigationBar] Add autolayout support (#6612)
Adds support to BottomNavigationBar to more easily work with Autolayout.  

* `intrinsicContentSize` returns the correct size of the bar items as content.
* `barItemsBottomAnchor` allows anchoring the Bottom Navigation bar to the safe area layout guide.

Updates the `MDCBottomNavigationBarController` to use the new layout anchor and eliminates the need to respond to safe area changes in the view controller.

Fixes #4520
2019-03-01 12:56:59 -05:00
Robert Moore
e553272885
[BottomNavigation] Make Controller available on iOS 8. (#6719)
Adds constraints safe for use on iOS 8. This removes the availability
checks previously set on the MDCBottomNavigationBarController class that
may have been causing CocoaPods lint errors.

Related to #6608
2019-02-27 20:47:43 -05:00
Robert Moore
7f959bec01
[BottomNavigation] Stop excluding VC example. (#6515)
The Bottom Navigation swift examples were excluding the
BottomNavigationController example.

Closes #4160
2019-01-29 14:43:02 -05:00
Robert Moore
62c5097a7a
[BottomNavigation] Example is self-contained. (#6480)
The BottomNavigationController example was depending on other components'
example classes. Instead, it should use self-contained (or at least within
BottomNavigation) classes.

|Before|After|
|---|---|
|![simulator screen shot - iphone 7 - 2019-01-25 at 14 52 58](https://user-images.githubusercontent.com/1753199/51769399-ec29b500-20b0-11e9-8a35-cceda7ede773.png)|![simulator screen shot - iphone 7 - 2019-01-25 at 14 52 16](https://user-images.githubusercontent.com/1753199/51769373-e0d68980-20b0-11e9-807a-c5aecf8b9719.png)|

Part of #4160
2019-01-28 10:48:43 -05:00
Eric Lee
d8fed59535 [BottomNavigation] Elevates the BottomNavigationBarController to beta status and re-adds its unit tests. (#6311)
Contributes to #4160
2019-01-24 07:47:40 -05:00
Eric Lee
f119f22226 [BottomNavigation] Sets the selected view controller to the first view controller in the given array when the bottom navigation controller's view controllers are set. (#6284)
This is to mimic the behavior of UITabBarController.

Contributes to: #4160
2019-01-13 15:24:12 -05:00
Eric Lee
9e7b8eed76 [BottomNavigation] Added an example for MDCBottomNavigationBarController (#6082) 2018-12-20 16:36:42 -05:00