73 Commits

Author SHA1 Message Date
David Collazo
c68dc7872c Add MDCProgressLayerView to MDCProgressView, update animation timing.
PiperOrigin-RevId: 488662553
2022-11-15 08:22:10 -08:00
David Collazo
594c36c4fd Create new MDCProgressLayerView type for indeterminate multichromatic animations.
PiperOrigin-RevId: 487949131
2022-11-11 16:54:09 -08:00
David Collazo
d8c1e9ac5c Change progressTintColors array to generic <UIColor *>.
PiperOrigin-RevId: 481663653
2022-10-17 09:44:11 -07:00
Jeff Verkoeyen
c34de39e30 Internal change.
PiperOrigin-RevId: 397316843
2021-09-17 07:45:01 -07:00
Cody Weaver
08d01596df [MultipleComponents] Remove mdf_effectiveUserInterfaceLayoutDirection in favor of the system API effectiveUserInterfaceLayoutDirection that was added in iOS 10.
PiperOrigin-RevId: 391307973
2021-08-17 09:30:47 -07:00
Andrew Overton
c7a70ce818 [ProgressView] Remove generics from ProgressView's progressTintColors
PiperOrigin-RevId: 355885230
2021-02-05 11:03:08 -08:00
Andrew Overton
1b70fd6ad9 [ProgressView] Add Objective-C generics to MDCProgressView
PiperOrigin-RevId: 353312272
2021-01-22 13:52:40 -08:00
Jeff Verkoeyen
fbb1f20aa2 Internal change
PiperOrigin-RevId: 332151481
2020-09-16 21:01:21 -07:00
Bryan Oltman
1b68b48522 [ProgressView] Remove request for VoiceOver focus in MDCProgressView's setHidden.
PiperOrigin-RevId: 323676726
2020-07-28 16:26:57 -07:00
Wenyu Zhang
be54e35951 [MDCProgressView] Fix indeterminate animation being removed before it is presented on screen.
PiperOrigin-RevId: 321083086
2020-07-13 19:57:05 -07:00
Wenyu Zhang
a411506026 [ProgressView] Reverse the start point and end point of indeterminate progress stroke to make it aligning with the animation direction.
PiperOrigin-RevId: 318494534
2020-06-26 10:15:20 -07:00
Wenyu Zhang
39de3e3efb [ProgressView] Fix RTL support on MDCProgressGradientView.
PiperOrigin-RevId: 318144506
2020-06-24 14:46:24 -07:00
Wenyu Zhang
989635ba8b [ProgressView] Reimplement animation on indeterminate mode to meet specification.
PiperOrigin-RevId: 318119106
2020-06-24 12:38:37 -07:00
Wenyu Zhang
00a6cab90b [ProgressView] Remove setMode:animated:completion API.
PiperOrigin-RevId: 317304615
2020-06-19 07:35:03 -07:00
Andrew Overton
685082b9a7 [ProgressView] Change float to CGFloat
PiperOrigin-RevId: 317107039
2020-06-18 08:29:53 -07:00
Nobody
1a75f9dbbb Add and indeterminate state to the progress bar.
PiperOrigin-RevId: 315687797
2020-06-10 07:43:47 -07:00
Wenyu Zhang
9c480c21a4 [ProgressView] Add support for gradient progress bar.
PiperOrigin-RevId: 310977753
2020-05-12 15:11:46 -04:00
Wenyu Zhang
7ea4449645 [ProgressView] Change progressTintColor and trackTintColor to nullable.
PiperOrigin-RevId: 310612107
2020-05-08 12:59:48 -07:00
Nobody
e035d70f50 Project import generated by Copybara.
PiperOrigin-RevId: 309039129
2020-04-29 17:00:59 +00:00
Yarden Eitan
a8a560da42 [ProgressView] Adding default accessibility label
PiperOrigin-RevId: 302624787
2020-03-24 02:38:42 -07:00
Nobody
58a181306f [ProgressView] Adding default accessibility label
PiperOrigin-RevId: 301788026
2020-03-19 04:46:12 -07:00
Yarden Eitan
8fe34d13e0 [ProgressView] Adding default accessibility label
PiperOrigin-RevId: 301786524
2020-03-19 04:33:10 -07:00
Wenyu Zhang
ae5515ea4a [ProgressView] Remove MDCProgressViewMotionSpec.
PiperOrigin-RevId: 301417528
2020-03-17 11:38:36 -07:00
Jeff Verkoeyen
2fb26e01b1 [ProgressView] Allow the progress view to be sized to fractional points.
This allows the progress view to more smoothly represent fractional progress and to take advantage of multi-pixel points on devices with retina displays.

PiperOrigin-RevId: 292342291
2020-01-30 07:22:12 -08:00
Jeff Verkoeyen
c169598704 Revert "[ProgressView] Allow the progress view to be sized to fractional points. (#9438)"
This reverts commit deb93d26d98d4fba1190c9b540791e568880f10e.
2020-01-27 10:27:14 -05:00
featherless
deb93d26d9
[ProgressView] Allow the progress view to be sized to fractional points. (#9438)
This allows the progress view to more smoothly represent fractional progress and to take advantage of multi-pixel points on devices with retina displays.

Closes https://github.com/material-components/material-components-ios/issues/9439#event-2955279250
2020-01-24 09:44:52 -05:00
Andrew Overton
b47266325e
[ProgressView] Delete MDCProgressViewColorThemer (#9231)
Delete MDCProgressViewColorThemer. Closes #9211.
2019-12-10 14:23:58 -05:00
Andrew Overton
c0fc20cce9
Deprecate MDCProgressViewColorThemer (#9203)
Related to b/145204539 (GitHub issue #9211)
2019-12-09 16:50:29 -05:00
Bryan Oltman
a049592f23
[ProgressView] Add accessibilityLabel (#8775) 2019-11-11 15:21:22 -05:00
featherless
63bb1a8c9f
[ProgressView] Add cornerRadius API. (#7417)
This new API enables clients to customize the corner radius of the filled portion of the progress view. Clients have requested this functionality via https://github.com/material-components/material-components-ios/issues/5429.

Example usage to create a "rounded progress pill" effect:

```objc
progressView.cornerRadius = CGRectGetHeight(progressView.bounds) / 2;
```

This feature request was requested by client team in service to their brand requirements.

This PR adds an example that demonstrates the new behavior. See the associated snapshot tests for a complete suite of screenshots of the new behavior.

## Screenshots

![Simulator Screen Shot - iPhone 7 - 2019-05-20 at 09 13 17](https://user-images.githubusercontent.com/45670/58024150-89d14600-7adf-11e9-9c94-6eb023c7f48e.png)

Closes https://github.com/material-components/material-components-ios/issues/5429
2019-09-16 09:58:13 -04:00
Cody Weaver
5ebe48ba4e
[ProgressView] Add traitCollectionDidChange block (#8035)
Adds a traitCollectionDidChangeBlock to MDCProgressView, called when its trait collection changes.
2019-07-23 12:04:58 -07:00
Robert Moore
6f2d5eb654
[ProgressView] Provide unique names for methods. (#7824)
ProgressView, its Theming Extension, and its tests all declared the same
method. This can introduce linker or compiler problems. Unique names are
provided based on their contexts.

Follow-up to #7791
2019-07-09 09:58:07 -04:00
Andrew Overton
43920aed56
[ProgressView] Add an MDCProgressView theming extension (#7791)
This PR adds a theming extension for MDCProgressView in support of b/136013554.
2019-07-08 13:11:08 -04:00
featherless
679870a13f
[ProgressView] Annotate themer APIs with the recommended APIs. (#7231)
Part of https://github.com/material-components/material-components-ios/issues/7108
2019-04-22 20:02:35 +03:00
Robert Moore
800188a649
{clang-format} Format the components. (#6347)
This is a follow-up to https://github.com/material-components/material-components-ios/pull/6027

```
find components \( -name "*.h" -or -name "*.m" \) | xargs clang-format -i
```
2019-01-23 11:08:43 -05:00
Yarden Eitan
2803125b2c
ran clang-format (#6027) 2019-01-11 13:23:51 -05:00
Robert Moore
03f3351ad5
Global replace of single-precision floats with CGFloat casts. (#5718)
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
2018-11-12 10:50:01 -05:00
Robert Moore
74a27253e8
Global replace of integral single-precision literals with integer literals. (#5709)
Global replace of integral single-precision literals with integer literals.

Regular expression used:
```perl
/[^\w]([0-9]+)\.[0]*[fF]/$1/
```
2018-11-08 14:02:04 -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
Jeff Verkoeyen
9854044c96 Revert "[automated] Standardize our open source license stanza to what Xcode generates. (#4982)"
This reverts commit b45bc2fdd4dfe12fc76751a45c9cf7b0d6c1261f.
2018-08-31 12:01:24 -04:00
featherless
b45bc2fdd4
[automated] Standardize our open source license stanza to what Xcode generates. (#4982)
Removes the need to copy-paste stanzas from other files anymore as we'll rely on https://github.com/material-components/material-components-ios/pull/4478 to generate the correct stanza for us instead.

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

### Find

```
/\*
 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\.
 \*/
```

### Replace

```
// 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 11:49:00 -04:00
featherless
e14b90e829
[schemes/Color] Formally mark all to-be-deprecated APIs as "ToBeDeprecated". (#4738)
This change further formalizes our pattern of annotating APIs that will be or are deprecated using class categories. Moving an API into such a category has the benefit of being picked up by the API diff toolchain and elevated into our release notes as a result.
2018-08-09 16:39:56 -04:00
Adrian Secord
72045ffd6d
[Docs] Updated known short link destination URLs to use short links. (#3575)
* Updated known shortlink destination URLs to use short links.

* Updated stray links in the CHANGELOG.md.

* Fixed FAB shortlink.

* Applied replacements to everything outside of components/.
2018-04-28 11:27:59 -04:00
featherless
0cc7e9860f
Standardizing API docs. (#3481)
This standardizes the themer API docs for every component.

Pivotal story: https://www.pivotaltracker.com/story/show/157066083
2018-04-26 22:25:57 -04:00
featherless
8395836c98
Remove all UIAppearance references from documentation. (#3480)
We do not intend to actively support UIAppearance any further. This change removes any references to supporting UIAppearance from our public documentation.

Pivotal story: https://www.pivotaltracker.com/story/show/157048342
2018-04-26 12:55:35 -04:00
featherless
d36136e361
[ProgressView] Add umbrella headers for all extension targets. (#3473)
Also updated all imports to make use of the umbrella headers.

Pivotal story: https://www.pivotaltracker.com/story/show/157045283
2018-04-24 16:17:53 -04:00
Robert Moore
61277455f1
Use safe selector access for color themers (#3126)
Many of our color themers are accessing optional properties without
first verifying that the color scheme responds to the selector.  This
can result in crashes. Instead, each optional property should be checked
for safety before being used.
2018-03-23 08:58:23 -04:00
ianegordon
fd1681b0de
[ProgressView] Remove MDMMotion (#2854)
* Remove MDMMOtion

* Cleanup PR before merge
2018-01-22 15:19:09 -05:00
featherless
b9404ded10
Revert "Add compile time flag for import style (#2562)" (#2612)
This reverts commit 6791dc4993d3a0ffa11735eeeef0583102621d52.
2017-12-06 11:22:17 -05:00
Louis Romero
6791dc4993
Add compile time flag for import style (#2562)
Closes #2550
2017-12-04 10:06:31 -08:00