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.
```
We can now make use of @available throughout our codebase.
We support Xcode 9 and up, which includes the iOS 11 SDK. This means we can remove any guards for SDKs prior to iOS 11.
This was cleaned up by running a global find-and-replace with the following regular expression:
```
Find:#if defined\(__IPHONE_11_0\) && \(__IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_11_0\)\n(.+if \(@available\(iOS 11.0, \*\)\) \{(?:.|\n)*?)(?:#else(?:.|\n)*?)?\n#endif
Replace:$1
```
With some additional cleanup for stragglers that didn't match this pattern. Note that else clauses were intentionally dropped.
Closes https://github.com/material-components/material-components-ios/issues/4909
Many of our Swift examples are either missing imports or are importing all of
MaterialComponents. Both of these will cause failures during internal builds.
* Add setHelperText:helperAccessibilityLabel
* Add nullability annotations
* Do not copy helperText param in -setHelperText:
* Update filled text field example
TextFields were not always correctly posting notifications when attributed
text was set programmatically. This can cause the placeholder to remain in its
"empty" position and overlap the text.
Also added some examples to demonstrate the behavior and fixed a typo.
Made colorScheme and typographyScheme properties in the class interfaces for all our examples.
Moved theming away from example inits and into viewDidLoad
Small update for slider example to allow it to grab the theming properly.
Related Pivotal: https://www.pivotaltracker.com/story/show/156616695
* Adding Color Themer for Textfields.
* We have to keep the old API around, and deprecated after releasing the new version.
* fixing indentions.
* Importing the needed headers instead of forward declaration, documenting the deprecation and suggested methods to use.
* Filled text field example is updated to style the textfield with the semantic color scheme.
TextFieldColorThemer should be able to theme any MDCTextInput.
* fixed couple of method name change updates.
* Adding Color Themer for Textfields.
* We have to keep the old API around, and deprecated after releasing the new version.
* fixing indentions.
* Importing the needed headers instead of forward declaration, documenting the deprecation and suggested methods to use.
* Filled text field example is updated to style the textfield with the semantic color scheme.
TextFieldColorThemer should be able to theme any MDCTextInput.
* fixed couple of method name change updates.
* Revert "fixed couple of method name change updates."
This reverts commit 9e0ef0f2eb08026e05b1f182aab6b4dc84fa766b.
* Revert "Revert "fixed couple of method name change updates.""
This reverts commit bda6b13ff979811bd1eccc6ef365dd273fed007b.
* fixing breaking tests.
Adding textInputFont and TextInputFontDefault properties to inputController was breaking many client who used to set the font straight to textInput font property.
The reason behind adding this property was to fully support dynamic types.
Reverting this change will break dynamic types support for textfields.
Pivotal issue to address the work needed to add this property: #156518577
* Extracting Accessibility out of FeatureHighlightViewController to a mutator.
Tests added.
Example updated.
* Revert "Extracting Accessibility out of FeatureHighlightViewController to a mutator."
This reverts commit 0b5433ebf86366087b240c4dc4992a0603fa73e0.
* Adding Font themer to TextFields.
* extra lf.
* dealing with warnings.
* Fixing unit tests.
* commenting out low priority set up for bounds
* commenting out tests to see if tests would fail.
* tests are back, scale could have been zero.
* temp fix in case the fonts are zero.
* check for default inside setter.
* fix compliing mistakes.
* add documentation for the change.
* Example of dynamic size with different fonts.
* added support for dynamic type with custom fonts.
* fixed the top overlapping issue
* Replied to comment and fixed the issues.
* Adding Text Input property to InputController
Changing the value of mdc_adjustsFontForContentSizeCategory should not effect the actual controller fonts that are set by user but only the properties of the actual textfield. In order to do that I moved the resizing of fonts away from the properties of InputController and into update layout.
* Fixing the comment. Changing font scheme to not accept nullable controllers.
* change documentation.
* fix warnings for .count in Swift strings and duplicate images in Asset folders, also give the Extension target all icons
* update project settings to recommended ones
* [TextFields] Fixes bug in multiline having ambiguous height in the text view.
* [TextFields] Making the comments clearer.
* [TextFields] PR feedback.
* [TextFields] PR feedback.
* [TextField] Uhoh.
* [TextFields] Going back and making the new class mandatory.
* [TextFields] PR feedback.
* [TextFields] Adding a multiline message to the example.
* [TextFields] Moving a method to a better place.
* [TextFields] Fixes multiline having set text.
* [TextFields] Adding new line to multi-line examples.
* [TextFields] Floating placeholder comments, organization and bug fix.
* [TextFields] Formatting.
* [TextFields] Adding back in the work I had lost.
* [TextFields] Adding some Xcode 8 support.
* [TextFields] Improved interface builder support.
* [TextFields] Adding multiline to interface builder example.
* [TextFields] Adding comment.
* [TextFields] Updating IB example.
* [TextFields] Updating storyboard for example.
* [TextFields] Adding handling of expanding on overflow for IB cases.
* [TextFields] Adding better expanding support for IB.
* [TextFields] Fixing bugs related to loading a multiline text field from a storyboard.
* [TextFields] Reorganizing IB examples to add new one.
* [TextFields] Adding useful comment.
`MDCTextField` should invoke `textFieldShouldClear` on its delegate before clearing the text. A similar delegate, `MDCMultilineTextInputDelegate` is now also supported on `MDCMultilineTextField` objects to support similar functionality.
Closes#2062
* [TextFields] Removes ambiguous layout.
* [TextFields] Better code organization and comment.
* [TextFields] Adding a filled in field to the examples.
* [TextFields] Correcting placeholder not rising when text is set programatically. Also better naming.
* [TextFields] Giving examples of each floating style a set .text.
* [TextFields] Adding placeholder float test.