11 Commits

Author SHA1 Message Date
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
48e95bbf0e
[BottomNavigation] Don't set sizeThatFitsIncludesSafeArea. (#8065)
The default value is false, so setting it to `false`/`NO` is unnecessary.

Part of #6783
2019-07-24 00:43:11 -04: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
Andrew Overton
b38372192f
Update to Swift 4.2 (#7166)
This PR updates the Swift version to 4.2.

Partially resolves #6874.
2019-04-17 16:59:02 -04:00
Robert Moore
10ed6188a5
[BottomNavigation] Examples clean-up. (#6718)
This is a collection of internal clean-ups that were overdue on Bottom Navigation examples.  Nearly all examples (8 of 9) were updated. The majority of the improvements focused on visual layout and appearance, but some code clean-up took place as well.

* Making sure buttons/labels remain on-screen after rotations.
* Correctly positioning the BottomNavigationBar with respect to the safe
  area.
* Not adding subviews or configuring views in `-init`
* Allow Catalog/Dragons to inject an App Bar.
* Stop overriding titles.
* Use property access.

## Before/After Screenshots

Not all examples visibly changed as a result of the code clean-up (e.g., "Bottom Navigation" and "Blur Effect"), but the before and after images are present to make it easier to review.

|Example|Before|After|
|---|---|---|
|Badge Value Test|![bn-badgevalue-develop](https://user-images.githubusercontent.com/1753199/53541471-fe4fa680-3ae7-11e9-96f6-7a57bfcc418b.png)|![bn-badgevalue-after](https://user-images.githubusercontent.com/1753199/53541474-027bc400-3ae8-11e9-80d8-3332c2f016bb.png)|
|Blur Effect|![bn-blur-develop](https://user-images.githubusercontent.com/1753199/53541485-0f98b300-3ae8-11e9-9072-8afebb379448.png)|![bn-blur-after](https://user-images.githubusercontent.com/1753199/53541486-11fb0d00-3ae8-11e9-9d07-853091e51a0c.png)|
|Bottom Navigation|![bn-typical-develop](https://user-images.githubusercontent.com/1753199/53541495-1de6cf00-3ae8-11e9-922d-6f981a94b007.png)|![bn-typical-after](https://user-images.githubusercontent.com/1753199/53541498-2212ec80-3ae8-11e9-9aa4-7bfa39573cb0.png)|
|Bottom Navigation (Swift)|![bn-swift-develop](https://user-images.githubusercontent.com/1753199/53541507-2b9c5480-3ae8-11e9-9460-f91c46e2a4fd.png)|![bn-swift-after](https://user-images.githubusercontent.com/1753199/53541509-2e974500-3ae8-11e9-99f6-4df133de640a.png)|
|Bottom Navigation Reorder (Swift)|![bn-reorder-develop](https://user-images.githubusercontent.com/1753199/53541558-6d2cff80-3ae8-11e9-92e0-ba99e48f9e34.png)|![bn-reorder-after](https://user-images.githubusercontent.com/1753199/53541560-7027f000-3ae8-11e9-982a-80ca04587f4d.png)|
|Bottom Navigation Selected|![bn-selected-develop](https://user-images.githubusercontent.com/1753199/53541575-7ddd7580-3ae8-11e9-83ff-def8334a2874.png)|![bn-selected-after](https://user-images.githubusercontent.com/1753199/53541577-803fcf80-3ae8-11e9-8789-0088ab3a9449.png)|
|Bottom Navigation Set Color (Swift)|![bn-setcolor-develop](https://user-images.githubusercontent.com/1753199/53541598-93529f80-3ae8-11e9-9fc9-e71b8530c398.png)|![bn-setcolor-after](https://user-images.githubusercontent.com/1753199/53541602-95b4f980-3ae8-11e9-95cb-eb463ba449e9.png)|
|Bottom Navigation Title Visibility (Swift)|![bn-titlevis-develop](https://user-images.githubusercontent.com/1753199/53541611-a36a7f00-3ae8-11e9-86ca-02aa2a7afc5e.png)|![bn-titlevis-after](https://user-images.githubusercontent.com/1753199/53541619-a9606000-3ae8-11e9-8e9c-3655d77f1d6b.png)|
2019-03-06 08:52:54 -05:00
featherless
2181084272
[automated] Standardize our open source license stanza to what Xcode generates. (#4985)
Removes the need to copy-paste stanzas from other files anymore as we'll rely on #4478 to generate the correct stanza for us instead.

This was an automated change generated by running a find-and-replace regular expression:

```
/\*
 Copyright ([0-9]+)-present the Material Components for iOS authors\. All Rights Reserved\.

 Licensed under the Apache License, Version 2\.0 \(the "License"\);
 you may not use this file except in compliance with the License\.
 You may obtain a copy of the License at

 http://www\.apache\.org/licenses/LICENSE-2\.0

 Unless required by applicable law or agreed to in writing, software
 distributed under the License is distributed on an "AS IS" BASIS,
 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied\.
 See the License for the specific language governing permissions and
 limitations under the License\.
 \*/
```

```
/\*
Copyright ([0-9]+)-present the Material Components for iOS authors\. All Rights Reserved\.

Licensed under the Apache License, Version 2\.0 \(the "License"\);
you may not use this file except in compliance with the License\.
You may obtain a copy of the License at

http://www\.apache\.org/licenses/LICENSE-2\.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied\.
See the License for the specific language governing permissions and
limitations under the License\.
\*/
```

```
/\*
 Copyright ([0-9]+)-present the Material Components for iOS authors\. All Rights Reserved\.
 Licensed under the Apache License, Version 2\.0 \(the "License"\);
 you may not use this file except in compliance with the License\.
 You may obtain a copy of the License at
 http://www\.apache\.org/licenses/LICENSE-2\.0
 Unless required by applicable law or agreed to in writing, software
 distributed under the License is distributed on an "AS IS" BASIS,
 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied\.
 See the License for the specific language governing permissions and
 limitations under the License\.
 \*/
```

```
// Copyright $1-present the Material Components for iOS authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
```
2018-08-31 12:13:07 -04:00
Yarden Eitan
3480c50c67
updated to newest CbC standard (#4956)
Move to the new CbC standard released in CatalogByConvention v2.5.0. See PR: material-foundation/cocoapods-catalog-by-convention#27 for more info on the change.
2018-08-29 20:45:13 -04:00
Robert Moore
175942d9e0
[Catalog] Fix Swift example imports (#4780)
Many of our Swift examples are either missing imports or are importing all of
MaterialComponents. Both of these will cause failures during internal builds.
2018-08-14 13:26:37 -04:00
Cody Weaver
684f96c9f3
[BottomNavigation] AccessibilityValue and Selected icon support (#4444)
Added support for custom accessibility value within bottom navigation tabs and selected icon.
2018-06-28 09:42:34 -04:00