144 Commits

Author SHA1 Message Date
Frank Wang
eb2c2f842e [GM3/UIKit/ProgressIndicator] Fix the issue where the progress is not updated when progress is set after init and the determinant stop mark has been enabled.
PiperOrigin-RevId: 663334572
2024-08-15 09:33:12 -07:00
Nobody
59495ab924 Add explicit imports for CoreGraphics in files which use it.
PiperOrigin-RevId: 642080231
2024-06-10 17:48:33 -07:00
Nobody
8f69468a2f Update Material iOS to compile for visionOS
PiperOrigin-RevId: 641364760
2024-06-07 14:52:13 -07:00
David Collazo
3710350a98 Change Determinate NTC Branch animations to use fillModeForwards, and update _progress in animationDidStop.
PiperOrigin-RevId: 609530942
2024-02-22 16:07:09 -08:00
David Collazo
16ee2b45a7 Add circular stop and gap to Determinant Progress View.
PiperOrigin-RevId: 607765268
2024-02-16 12:20:58 -08:00
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
Jeff Verkoeyen
a8e4831fd0 Flattening all unit tests into single directories as per convention.
PiperOrigin-RevId: 367426300
2021-04-08 07:33:29 -07:00
Andrew Overton
c7a70ce818 [ProgressView] Remove generics from ProgressView's progressTintColors
PiperOrigin-RevId: 355885230
2021-02-05 11:03:08 -08:00
Alyssa Weiss
fdb53be95e Add snapshot and unit tests.
PiperOrigin-RevId: 355626654
2021-02-04 08:02:03 -08:00
Andrew Overton
1b70fd6ad9 [ProgressView] Add Objective-C generics to MDCProgressView
PiperOrigin-RevId: 353312272
2021-01-22 13:52:40 -08:00
Andrew Overton
f1d4dd25f0 [ProgressView] Add ProgressIndicators.md for material.io
The Material progress indicator component is broken down into two distinct iOS components, ProgressView and ActivityIndicator. This PR adds a new markdown file, `ProgressIndicators.md`, to be displayed for the progress indicator component on material.io, and leaves both the ProgressView and ActivityIndicator READMEs intact.

Preview the doc here: https://github.com/andrewoverton/material-components-ios/blob/material-io-progress-indicators/components/ProgressView/ProgressIndicators.md

Closes https://github.com/material-components/material-components-ios/pull/10136

COPYBARA_INTEGRATE_REVIEW=https://github.com/material-components/material-components-ios/pull/10136 from andrewoverton:material-io-progress-indicators 4daaa8cd80cd9bbf44c7d642324b591def841934
PiperOrigin-RevId: 345734425
2020-12-04 12:36:03 -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
Andrew Overton
07c46757cc Replace material.io API doc links with links to the relevant header f…
This PR replaces API links containing "/api-docs/" with links to suitable header files in GitHub because the site previously linked to is being taken down and replaced with something that won't handle API docs.

Closes https://github.com/material-components/material-components-ios/pull/10045

COPYBARA_INTEGRATE_REVIEW=https://github.com/material-components/material-components-ios/pull/10045 from andrewoverton:replace-mio-api-docs-with-github-links 0d6e56cc11d0c147366a4f6cde829d8b51567ecc
PiperOrigin-RevId: 323424362
2020-07-27 13:09:23 -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
Wenyu Zhang
d5b47fca05 [ProgressView] Make indeterminate progress view example showing how transition looks.
PiperOrigin-RevId: 316958915
2020-06-17 13:58:19 -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
Wenyu Zhang
14bdd278b4 Update expected translated string value for Progress localization test.
PiperOrigin-RevId: 309880028
2020-05-04 21:56:28 -07:00
Nobody
e035d70f50 Project import generated by Copybara.
PiperOrigin-RevId: 309039129
2020-04-29 17:00:59 +00:00
Wenyu Zhang
a3381717f7
Fix the bazel BUILD files and snapshot that were restored unintentionally.(#9983) 2020-04-29 11:00:00 -04:00
Randall Li
0100cfe414 [MDC-iOS/BottomSheet] Fix dismissOnDraggingDownSheet behavior
The bottom sheet incorrectly allowed the sheet to be drag dismissed when `dismissOnDraggingDownSheet` was set to NO.

This change permits the gesture to dismiss to begin but prevents it from actually closing the sheet.

https://github.com/material-components/material-components-ios/issues/9723

Closes https://github.com/material-components/material-components-ios/pull/9885

PiperOrigin-RevId: 307802500
2020-04-22 06:21:26 -07:00
Jeff Verkoeyen
8abbb099a9 Delete all bazel support.
We no longer support bazel.

This PR deletes everything related to bazel support from our repo.

Closes https://github.com/material-components/material-components-ios/pull/9968

PiperOrigin-RevId: 306227127
2020-04-13 07:13:47 -07: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
Robert Moore
8eb7296dab
[Catalog] Fix container scheme properties. (#9192)
Making remaining examples use protocol for container schemes to match the
project's expected convention.

Found while reviewing #9188
2019-12-09 10:48:25 -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
Robert Moore
bbfe5f8193 [ProgressView] Add more Starlark macros. (#8181)
Add more Starlark macro use to the BUILD file. Makes releases easier.

Part of #8150
2019-08-02 08:48:03 -07: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
8dcf1e4a56
[*] Remove RTL snapshot method overrides. (#7996)
With #7986, most snapshot tests began overriding a method that had nearly the
same behavior.
2019-07-22 21:11:17 -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