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.
```
Changed colors for the example, this should help users with visual impairments see the elements better. Before if the colors were inverted it was hard to see even if a user wasn't visually impaired.
* Add updated ink flag
* Add completion block delegate methods
* Rename existing ink to legacy ink
* Update example with legacy ink as second ink view
* Update comment formatting
* Update formatting
* Update ink unit tests
* Update ink unit tests
* Import UIKit for UIColor support
* Add dependency to Material Math
* Add Material Math dependency
* Use CABasicAnimations where possible
* Add support for maxRippleRadius
* Minor refactoring for timing functions
* Remove unused mark
* Add ink description to comments
* Minor formatting fix
* Nullability updates and clarification comments
* Remove email in comments.
* Add nullability
* Add nullability
* Use year when file was created
* Add float
* Update constant names
* Update formatting
* Update year for legal reasons
* Clarify comment about use of usesCustomInkCenter
* Update cancelAllAnimationsAnimated to stop all active ink ripples
* Remove use of ink layers array and access sublayers directly
* Check layer class in cancelAllAnimationsAnimated
* Use bounds rather than frame in layoutSubviews
* Setting radii in setNeedsLayout
* Replace MDC all icons
* Update border
* Replace MDCActionExtension icon with new logo
* Update all headers to be white on black
* Make Catalog greyscale to match Material’s style.
* Fix collection tile
* Update all headers to be white on black
* Make Catalog greyscale to match Material’s style.
* Fix collection tile
* WIP: Updating TabBar example to use black/green theme.
* WIP: Monochoroming all examples.
* Switch MDC Catalog to a black and white theme (#1355)
* Replace MDC all icons
* Update border
* Replace MDCActionExtension icon with new logo
* Update all headers to be white on black
* Make Catalog greyscale to match Material’s style.
* Fix collection tile
* Update all headers to be white on black
* Make Catalog greyscale to match Material’s style.
* Fix collection tile
* Fix floats
* Make Catalog greyscale to match Material’s style.
* More black and whiting
* WIP: Snackbar and global style
* Simplify snack bar examples.
* Page control
We can credit any contributor who would like to be credited this way, by adding them on request to the AUTHORS file. The copyright statement changes are required for this to work. Note that this has...
Summary:
We can credit any contributor who would like to be credited this way, by adding them on request to the AUTHORS file. The copyright statement changes are required for this to work. Note that this has no legal change, since the contributors always retained their copyright despite the copyright notice, but it's a nice acknowledgement.
Changed copyright statement to include non-Google authors.
Command run:
find * \( -name '*\.m' -or -name '*\.h' -or -name '*\.swift' \) -and -not \( -path 'scripts/external*' -name Pods \) -print0 | xargs -0 sed -i '' 's/Copyright \(.*\) Google Inc/Copyright \1 the Material Components for iOS authors/'
Added non-source files.
Command run:
grep -Rl 'Copyright .* Google Inc' * --exclude-dir scripts/external --null | xargs -0 sed -i '' 's/Copyright \(.*\) Google Inc/Copyright \1 the Material Components for iOS authors/'
Reviewers: featherless, O1 Material components iOS, randallli
Reviewed By: O1 Material components iOS, randallli
Tags: #material_components_ios
Differential Revision: http://codereview.cc/D1415
Summary: "Material design" is not capitalized except when referring to the actual Material Design team at Google.
Reviewers: O1 Material components iOS, randallli
Reviewed By: O1 Material components iOS, randallli
Subscribers: randallli, featherless
Tags: #material_components_ios
Differential Revision: http://codereview.cc/D1306
Summary:
Note, please see this before reviewing: https://github.com/google/material-components-ios/issues/216
Also, there is no longer any concept of "canceling" an ink splash where the ink contracts back down to a point, so some if/then branches were collapsed.
Reviewers: junius, #mdc_ios_owners, featherless
Reviewed By: junius, #mdc_ios_owners, featherless
Projects: #material_components_ios
Differential Revision: http://codereview.cc/D353
Summary:
[Ink] Updated the ink example to include smaller shapes.
Screen shot: http://codereview.cc/F1445
Video: http://codereview.cc/F1446
There's a problem with the unbounded ink getting clipped by sibling views... not sure what to do about that. We could replace the unbounded example with a single large square again. What do you think?
Reviewers: junius, #mdc_ios_owners
Reviewed By: junius, #mdc_ios_owners
Projects: #material_components_ios
Differential Revision: http://codereview.cc/D312
Summary:
This simplifies the examples for each of these components.
The other components have a few extra features that may take a bit more time to migrate over,
notably:
- Swift (ShadowLayer)
- Resources (SpritedAnimationView)
- Unit and UI tests (Switch, Typography)
Reviewers: junius, randallli, #mdc_ios_owners, ajsecord
Reviewed By: #mdc_ios_owners, ajsecord
Subscribers: ajsecord
Projects: #material_components_ios
Differential Revision: http://codereview.cc/D124
Summary:
Typically speaking, a structured catalog app will show a list of components and allow the user to drill down to a list of examples for each component. Such an app might be built with a UITableView or UICollectionView, such that the following process is followed to add a new example:
1. Create the new view controller.
2. Add a new entry in the respective component's "examples" list.
3. Upon tapping the entry, create an instance of the view controller and push/present it.
## Convention over configuration
In the interest of encouraging the creation of more examples, I'd like to pursue a solution that *minimizes the number of steps required to create new examples*. The ideal outcome of this task: adding a new example to our 'catalog' is a single step:
1. Create a view controller driving your demo.
Notable constraints to satisfy:
- Zero code written outside of the context of the demo view controller by the demo writer. Someone adding a new example should not have to make any changes to the Catalog's structure.
This diff solves the above with approximately 150 lines of code.
## What's going on in this change?
Deleting the Ink example project. In this new "by convention" approach we simply have to add a ViewController.h/m into the component's `examples/` directory. When `pod install` is ran on the catalog, CocoaPods will detect these files and add them to the build.
Introducing the new `catalog/` directory. This is where the code for the new convention-based catalog app lives.
The MDCCatalog app includes an AppDelegate and a NodeViewController. The AppDelegate enumerates the runtime for classes that respond to the `catalogHierarchy` method and then creates a UINavigationController pointing at the root node of the catalog hierarchy. NodeViewController simply represents the children of a node and allows the user to tap a child row to move deeper in the tree.
There are a few methods in the "Runtime" for both Objective-C and Swift. These are the workhorses for enumerating the classes at runtime.
Reviewers: #material_components_ios_owners, randallli
Reviewed By: #material_components_ios_owners, randallli
Projects: #material_components_ios
Differential Revision: http://codereview.cc/D119
Test Plan:
Open an example project
Build and run on device.
It should run without codesigning erros.
Reviewers: junius, featherless, #material_components_ios_owners
Reviewed By: featherless, #material_components_ios_owners
Projects: #material_components_ios
Differential Revision: http://codereview.cc/D103
Summary:
- Add Pesto and build_tests' xcworkspace to .gitignore.
- Sort the projects in Catalog.xcworkspace.
- Add iPad Pro icon to appiconset's Contents.json.
- Update the storyboard (automatically done by Xcode when opened).
- Update the year in the project template info that is added to new source files.
Reviewers: ajsecord, #material_components_ios_owners, featherless
Reviewed By: #material_components_ios_owners, featherless
Projects: #material_components_ios_owners
Differential Revision: http://codereview.cc/D84
Summary: Adds Ink component. Unit tests and user documentation still to come.
Test Plan: Unit tests, example code.
Reviewers: featherless, #material_components_ios_owners, randallli
Reviewed By: featherless, #material_components_ios_owners, randallli
Projects: #material_components_ios_owners
Differential Revision: http://codereview.cc/D11