The activity indicator needs an API so clients can hook-in to trait collection changes. This additionally passes the activity indicator as a parameter so clients can modify the activity indicator within the block.
Closes#7928
### The problem
When a client hides an activity indicator, the animation would continue despite not being necessary
### The solution
Override `setHidden` and stop the animation when hidden is true.
### Bugs
Closes#5955
Replacing all non-integral, single-precision floating point literals with double-precision values explicitly cast to CGFloat. For example, `0.1f` should become `(CGFloat)0.1`.
Regex used:
```
([0-9]*\.)([0-9]*?)([1-9]+)([0-9]*?)[fF]
```
PiperOrigin-RevId: 220683126
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.
```
* Initial addition of kokoro and bazel continuous integration support.
Only adds support for ActivityIndicator and its dependencies. Will add other components to the continuous integration in follow up changes.
* Add AnimationTiming.
* Fix target name.
* Use ... matching to run all tests and build all targets.
* Just run tests.
* Add skeleton tests.
* Fix copyrights and build files.
* Add bzl file.
* Standardize build files.
* Fix typo.
* Naming.
* Remove confusing comment.
* Use Xcode 8.2.
* [ActivityIndicator] Default cycleColors property for empty arrays
The |cycleColors| property currently handles empty array assignments by assigning an array with a
single blue color. This change will modify that behavior to revert back to the original "default"
array.
* Adding unit tests to confirm the default behavior in different scenarios.
* Simplifying implementation of default `cycleColors` values based on feedback from @ianegordon
* * Code clean-up and simplification for stroke color updates
* Adding class check in +initialize
* Adding basic Swift unit tests, minor clean-up, removing bad test.