Nobody
24a0ffbd03
Annotate various Delegate protocols as NS_SWIFT_UI_ACTOR
...
PiperOrigin-RevId: 708413470
2024-12-20 13:33:55 -08:00
Nobody
eb0edee9f7
Internal change.
...
PiperOrigin-RevId: 663080530
2024-08-14 15:44:04 -07:00
Wenyu Zhang
6774704b28
[MDC-iOS] Remove Slider testExplicitlyNonDiscreteSliderAlignsToThumbPosition test.
...
PiperOrigin-RevId: 513626475
2023-03-02 13:39:09 -08:00
Randall Li
58b4d28099
[Slider] Change deprecation warning to point at potential script.
...
PiperOrigin-RevId: 491940566
2022-11-30 09:30:41 -08:00
Nobody
ac1c286e31
Fixed up imports for Slider
...
PiperOrigin-RevId: 476113171
2022-09-22 09:00:05 -07:00
Jeff Verkoeyen
b2bbd50350
Mark all To Be Deprecated APIs as Deprecated.
...
PiperOrigin-RevId: 460478209
2022-07-12 09:13:52 -07:00
Wenyu Zhang
4ca68941b8
[Slider] Mark the component as To Be Deprecated.
...
Use a UISlider instead.
PiperOrigin-RevId: 454728255
2022-06-13 16:49:37 -07:00
Janette James
679faa474a
Update dots when active segment shrinks and thumb crosses anchor
...
PiperOrigin-RevId: 448971493
2022-05-16 08:53:48 -07:00
Jeff Verkoeyen
86a8c97dc7
Remove all pre-iOS 12 logic.
...
PiperOrigin-RevId: 400788645
2021-10-04 12:41:07 -07:00
Jeff Verkoeyen
c34de39e30
Internal change.
...
PiperOrigin-RevId: 397316843
2021-09-17 07:45:01 -07:00
Jeff Verkoeyen
ec44b12ee9
Internal change
...
PiperOrigin-RevId: 394725753
2021-09-03 11:44:01 -07:00
Alyssa Weiss
fd6682bdd2
Update MDCSlider to respect UISemanticContentAttribute.
...
PiperOrigin-RevId: 387190352
2021-07-27 14:02:53 -07:00
Andrew Overton
4e245ac6dc
[Multiple components] Miscellaneous doc updates
...
This PR closes out all current doc change requests.
Closes https://github.com/material-components/material-components-ios/pull/10181
COPYBARA_INTEGRATE_REVIEW=https://github.com/material-components/material-components-ios/pull/10181 from andrewoverton:dev-docs-03-15-cherry-pick 00414a4f89e39dfc8d47623ee95e0311db1c7ae7
PiperOrigin-RevId: 363178361
2021-03-16 07:30:36 -07:00
Jeff Verkoeyen
b3fa42005b
Optimizing imports
...
PiperOrigin-RevId: 356966407
2021-02-11 07:12:37 -08:00
Andrew Overton
a539853e3c
[Slider] Slider layout and size changes
...
PiperOrigin-RevId: 343388008
2020-11-19 16:00:46 -08:00
Andrew Overton
0a56c1683f
[Slider] Replace Slider docs
...
See a preview here: https://github.com/andrewoverton/material-components-ios/tree/material-io-slider-docs/components/Slider#differences-from-uislider
Closes https://github.com/material-components/material-components-ios/pull/10122
COPYBARA_INTEGRATE_REVIEW=https://github.com/material-components/material-components-ios/pull/10122 from andrewoverton:material-io-slider-docs 3e312000c39bd795e80d1d0a6cde23486deb6171
PiperOrigin-RevId: 342665007
2020-11-16 10:26:35 -08:00
Wenyu Zhang
8e0ed49dc6
[Slider] Set thumbIsSmallerWhenDisabled to NO to match Material spec.
...
PiperOrigin-RevId: 332867778
2020-09-21 09:36:43 -07:00
Bryan Oltman
39af7115f7
[private/ThumbTrack] Remove ability for thumb view to grow while dragging.
...
PiperOrigin-RevId: 332327230
2020-09-17 15:19:40 -07:00
Bryan Oltman
c861bd32c9
[Slider] Remove checks for iOS 10 availability.
...
PiperOrigin-RevId: 332074254
2020-09-16 13:24:05 -07:00
Bryan Oltman
5da1486c9f
[Slider] Add call to [super prepareForReuse] in example.
...
PiperOrigin-RevId: 331836270
2020-09-15 13:06:13 -07:00
Jeff Verkoeyen
7119e0c1fe
[Slider] Expose thumbBorderWidth and thumbIsSmallerWhenDisabled.
...
These APIs enable further configuration of the slider's behavior and style.
PiperOrigin-RevId: 330570657
2020-09-08 13:10:03 -07:00
Wenyu Zhang
e5c046c89a
[Slider] Update Slider example to conform to minimum touch size by change frame.
...
PiperOrigin-RevId: 325465640
2020-08-07 10:56:48 -07:00
Wenyu Zhang
ab519cac9f
[ThumbTrack] Turn centerVisibleArea on on ThumbView to ensure its minimum touch target size.
...
PiperOrigin-RevId: 325297919
2020-08-06 13:32:43 -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
Bryan Oltman
0495b79871
[Slider] Add EarlGrey test to expose bug where tapping on slider track opposite anchor point doesn't trigger UIControlEventValueChanged
...
PiperOrigin-RevId: 322664882
2020-07-22 15:13:08 -07:00
Bryan Oltman
de482d077a
[Slider] Remove supplemental directory from examples.
...
PiperOrigin-RevId: 322598360
2020-07-22 10:09:20 -07: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
Bryan Oltman
0e9362f933
[Slider] Move protocol definitions into separate header files
...
PiperOrigin-RevId: 302063293
2020-03-20 11:16:17 -07:00
Yarden Eitan
6326cd055a
[Slider] Allow thumb to stay filled with discrete value label ( #9866 )
...
As per Material Design: https://material.io/components/sliders/#discrete-slider a discrete slider can have it thumb stay even when a value label presents itself.
With the current implementation, when a value label on a discrete slider is displayed, the thumb disappears.
Clients can no opt-in to having the thumb continue to display itself when the value label is shown.
Tested by running catalog example on simulator with the property set to YES, as well as with unit test and snapshot test.
Closes #8986
2020-03-10 13:30:09 +02:00
Randall Li
d03c34293f
[Material][Availability] Migrates Slider to MDCAvailability. ( #9704 )
...
[Material][Availability] Migrates Slider to MDCAvailability.
2020-02-14 09:08:07 -05:00
Nobody
b8ffaabc73
Internal Change
...
PiperOrigin-RevId: 293891746
2020-02-07 14:15:39 -08:00
Jacob Lukas
f0816875d7
Add allowAnimatedValueChanges property to MDCSlider
...
PiperOrigin-RevId: 291975707
2020-01-28 11:25:16 -08:00
Jacob Lukas
a742270f97
Add trackEndsAreInset property to MDCSlider
...
PiperOrigin-RevId: 291975646
2020-01-28 11:22:27 -08:00
Jacob Lukas
2ee31932b6
Add trackEndsAreRounded property to MDCSlider
...
PiperOrigin-RevId: 291974805
2020-01-28 11:17:57 -08:00
Robert Moore
3671e05bde
[Slider] Update documentation to match behavior. ( #8782 )
...
The MDCSlider documentation needs to be updated to match its current behavior.
This commit corrects an outdated behavioral description for the
`trackTickVisibility` API. It also updates the README to include more recent
changes to the APIs.
Follow-up from #8758
2019-11-12 10:58:19 -05:00
Robert Moore
4194c01fbe
[Slider][ThumbTrack] Fix event handling. ( #8759 )
...
Slider/ThumbTrack event handling was broken by the way track tick visibility
was implemented. This PR fixes that event handling.
Fixes #8758
2019-11-11 16:21:44 -05:00
Robert Moore
5d6941b61d
[Slider][ThumbTrack] Continuous sliders show tick marks. ( #8745 )
...
Enables showing tick marks for continuous Sliders.
Closes #8737
2019-11-06 22:21:05 -05:00
Robert Moore
ed7b654e4a
[ThumbTrack] Discrete dots scale slowly with track height. ( #8744 )
...
The discrete dots in the ThumbTrack originally assumed that the track would
only ever be 2 points high. Now that customizable heights are allowed, the
dots should scale more slowly.
This is still not perfect, since the original positioning of the ticks resulted in the filled track stopping at non-center positions of each tick. However, it is an incremental improvement and better VX will necessitate Material Design inputs.

Improves #8741
2019-11-06 15:36:41 -05:00
Robert Moore
61f901fdc7
[ThumbTrack][Slider] Add API to control showing tick marks. ( #8743 )
...
A new API, `trackTickVisibility` is provided to control the visibility of
track tick marks. Specifically allows showing track tick marks for continuous
sliders and for discrete sliders even when the Thumb is not pressed.
Closes #8737
2019-11-06 14:13:25 -05:00
Bryan Oltman
d6d13cdfac
[Slider] Add trackHeight property ( #8740 )
...
* [Slider] Add trackHeight property
* Add track size tests for discrete sliders
* Update doc comment for trackHeight
2019-11-05 17:47:36 -05:00
Yarden Eitan
8f9dd740d0
[Slider] [ThumbTrack] Add Font API and Dynamic Type support ( #8708 )
...
In this PR the main goal is to add Dynamic Type support. As part of this support I am doing the following:
1. Adding a Font API to ThumbTrack and Slider to be able to set the font of the discrete label to a scalable font.
2. Deprecating the old fontSize API (which isn't used internally).
3. Adding adjustsFontForContentSizeCategory APIs to Slider and ThumbTrack.
4. Resizing the ThumbTrack view accordingly based on the font size instead of having it static.
The snapshot tests in place allow me to present the new support for dynamic type and custom fonts.
Closes #8646
2019-11-01 10:58:07 -04:00
Yarden Eitan
1b7b249805
[Slider] Add snapshot tests for setting preferredFont with adju… ( #8645 )
...
This PR adds 2 snapshot tests to verify the behavior for setting preferredFont on the Banner's text elements when adjustsFontForContentSizeCategory is set to YES.
It is important to note that Slider currently doesn't expose any font property nor allows setting adjustsFontForContentSizeCategory on the label of the thumbtrack. These snapshot tests allow us to verify once we provide these APIs to see the changes to the font size.
Opened b/143287831 for tracking.
Closes #8643
2019-10-31 15:58:38 -04:00
afweiss
8a587b8c61
[Slider] Adding Haptic Feedback When Crossing Anchored Value ( #8225 )
...
For sliders that are anchored, there is now a light vibration when the user passes over the slider's anchored value.
2019-09-03 12:30:10 -04:00
Robert Moore
efdbb44938
[Slider] Remove use of NS_ASSUME_NONNULL_BEGIN. ( #8300 )
...
The project overwhelmingly uses explicit nullability annotations. This PR
switches a test class for MDCSlider to explicit annotations.
Part of #8297
2019-08-13 12:52:32 -04:00
Robert Moore
be45bbf3ee
[Slider] Use Starlark BUILD macros. ( #8194 )
...
Add more Starlark macros to the BUILD file to make releasing easier.
Part of #8150
2019-08-02 16:33:28 -04:00
Cody Weaver
c6ab74349d
[Slider] Add MaterialElevation support ( #8127 )
...
Adds conformance to MDCElevatable and MDCElevationOverriding to
MDCSlider.
Closes #8014
2019-07-30 21:57:43 -07:00
Cody Weaver
118840dfc8
[Slider] Add traitCollectionDidChange block ( #8057 )
...
Adds a traitCollectionDidChangeBlock to MDCSlider, called when its trait collection changes.
Closes #8042
2019-07-23 20:46:43 -07:00
Wenyu Zhang
4d47e68dd8
[Slider] Add shadowColor to support dynamic color behavior. ( #7972 )
...
Closes https://github.com/material-components/material-components-ios/issues/7866 .
2019-07-21 15:22:58 -04:00