9 Commits

Author SHA1 Message Date
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