5621 Commits

Author SHA1 Message Date
Andrew Overton
9cc66610ec [Chips] Replace Chips docs
Closes https://github.com/material-components/material-components-ios/pull/10088

COPYBARA_INTEGRATE_REVIEW=https://github.com/material-components/material-components-ios/pull/10088 from andrewoverton:material-io-chips-docs b7710bfeee624db847b3c8fdb4075e208c9d9f00
PiperOrigin-RevId: 335025863
2020-10-02 07:57:33 -07:00
Jeff Verkoeyen
791596b851 [ActionSheet] Update all test and example files to match conventions.
PiperOrigin-RevId: 334822431
2020-10-01 08:54:27 -07:00
Jeff Verkoeyen
ab1ea86eef [ActionSheet] Flatten the unit tests into a single directory.
This aligns with our test directory organizational conventions.

PiperOrigin-RevId: 334808133
2020-10-01 07:21:20 -07:00
Nobody
cbfa5400ed Fix an issue that alertController:didTapAction:withEvent: delegate method is not called if the action doesn't have completion handler.
PiperOrigin-RevId: 334301214
2020-09-28 21:54:37 -07:00
Andrew Overton
f1085b0639 merged release-candidate 2020-09-28 14:49:05 -04:00
Andrew Overton
526088b82e Bumped version number to 117.0.0. 2020-09-28 13:37:21 -04:00
Jeff Verkoeyen
166e7ca6cb [Snackbar] Delete all deprecated APIs.
PiperOrigin-RevId: 334175572
2020-09-28 09:39:46 -07:00
Galia Kaufman
9d9bd93847 [Dialogs] Adding accessoryViewHorizontalInset API
The API allows setting horizontal insets for the accessory view that are different from the message. This is most often used for dialogs that have both a message and an accessory view, as demonstrated in the attached example.

Additionally, this example demonstrates how to add an horizontal hairline as shown on the material.io spec for Confirmation Dialogs.

Note:
This new API is needed because clients do not always have control over the view that is being used as an accessory view, or that the view is used in multiple areas in the app, and cannot be customized.
Additionally, there's no way currently to set 0 insets for the accessory view, while still keeping the 24 value insets for the message, which is a relatively common scenario.
PiperOrigin-RevId: 334142026
2020-09-28 06:12:48 -07:00
Yarden Eitan
89b43fd8ff [TabBarView] Scroll to selected item when there is an orientation/size change.
We do not update needsScrollToSelectedItem to YES in every setBounds or just remove the flag and have it scroll to the selected item in every layoutSubviews because this is a UIScrollView so every scroll updates the contentOffset which then triggers these methods. We want to only trigger this code path in orientation/size changes.

PiperOrigin-RevId: 333731208
2020-09-25 07:46:14 -07:00
Alyssa Weiss
bd6484925b Delete deprecated buttonFont for MDCAlert and make all appropriate changes following deletion
PiperOrigin-RevId: 333566191
2020-09-24 12:03:36 -07:00
Jeff Verkoeyen
e1afe22cfb [Math] Deprecate all APIs that have a direct standard library equivalent.
Prefer using tgmath.h to get double/float-based APIs instead.

PiperOrigin-RevId: 333511426
2020-09-24 07:39:16 -07:00
Galia Kaufman
e9b0eee25d [Dialogs] Add an accessoryView with a collection example
This example demonstrates adding a collection view as an accessory view of a Material alert.  It also demonstrates adding a horizontal line above the actions, as shown on material.io's spec for Confirmation Dialogs. The line will be fixed to reach the edges of the dialogs in a followup PR (cl/331128888).

PiperOrigin-RevId: 333376220
2020-09-23 14:43:24 -07:00
Yarden Eitan
5a4f5baac6 [AppBar] Deprecate AppBar color themer APIs.
PiperOrigin-RevId: 333371966
2020-09-23 14:23:36 -07:00
Yarden Eitan
caafdae217 [FlexibleHeader] Deprecate pre iOS 8 ToBeDeprecated APIs.
PiperOrigin-RevId: 333367145
2020-09-23 14:19:34 -07:00
Yarden Eitan
70f2368ffc [TabBar] Deprecate typography themer API.
PiperOrigin-RevId: 333367012
2020-09-23 14:14:34 -07:00
Yarden Eitan
9a176d6c07 [ThumbTrack] Deprecate Ink APIs.
Use Ripple instead.

PiperOrigin-RevId: 333366984
2020-09-23 14:12:34 -07:00
Yarden Eitan
654c6cfdd7 [NavigationBar] Deprecate typography themer APIs.
PiperOrigin-RevId: 333366922
2020-09-23 14:10:35 -07:00
Yarden Eitan
bf90886353 [AppBar] Deprecate API from MDCAppBarNavigationController.
PiperOrigin-RevId: 333366853
2020-09-23 14:08:37 -07:00
Yarden Eitan
c5c231c879 [MDCAlertController] Deprecate button styling APIs.
PiperOrigin-RevId: 333366774
2020-09-23 14:06:39 -07:00
Yarden Eitan
39e7aed49c [FlexibleHeader] Deprecate MDCFlexibleHeaderMinMaxHeight API.
PiperOrigin-RevId: 333366623
2020-09-23 14:04:35 -07:00
Yarden Eitan
2294616a4d [NavigationBar] Deprecate color themer APIs.
PiperOrigin-RevId: 333366577
2020-09-23 14:01:52 -07:00
Yarden Eitan
8960677221 [FeatureHighlight] Deprecate color themer APIs.
PiperOrigin-RevId: 333366448
2020-09-23 13:59:45 -07:00
Yarden Eitan
30b6cc1703 [ButtonBar] Deprecate inkColor API.
Please use rippleColor instead.

PiperOrigin-RevId: 333366306
2020-09-23 13:57:08 -07:00
Alyssa Weiss
f87b98f26b Update default stroke width to be 2.5
PiperOrigin-RevId: 333293466
2020-09-23 08:09:35 -07:00
Andrew Overton
ea59fefa1c [TextControls] Translate frame to window coordinates in accessibilityPath
PiperOrigin-RevId: 333289355
2020-09-23 07:40:03 -07:00
Jeff Verkoeyen
09a07ca6d2 Internal change
PiperOrigin-RevId: 333130898
2020-09-22 12:11:00 -07:00
Andrew Overton
29d036ba11 Bumped version number to 116.0.1. 2020-09-22 14:05:37 -04:00
Alyssa Weiss
8842f55760 Update the testing for the localization snapshot tests.
PiperOrigin-RevId: 332912160
2020-09-21 12:52:20 -07:00
Alyssa Weiss
8ef317c162 Update ink and ripple handling for long press when LargeContentViewer is enabled
PiperOrigin-RevId: 332909523
2020-09-21 12:40:28 -07:00
Wenyu Zhang
8e0ed49dc6 [Slider] Set thumbIsSmallerWhenDisabled to NO to match Material spec.
PiperOrigin-RevId: 332867778
2020-09-21 09:36:43 -07:00
Alyssa Weiss
d40c6d8608 Remove iOS 10+ checks now that the minimum support contract is iOS 10.
PiperOrigin-RevId: 332836975
2020-09-21 06:28:30 -07:00
Andrew Overton
873c0b78d8 [TextControls] Override accessibilityPath in MDCBaseTextField
PiperOrigin-RevId: 332544566
2020-09-18 16:01:10 -07:00
Andrew Overton
588d9d2fe5 [BottomSheet] Mask elevation on bottom edge
PiperOrigin-RevId: 332461973
2020-09-18 09:08:35 -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
2a13da0373 [Slider] Do not adjust thumb size on touch down.
PiperOrigin-RevId: 332260546
2020-09-17 10:19:22 -07:00
Bryan Oltman
bc81b052ab Internal change
PiperOrigin-RevId: 332239270
2020-09-17 08:31:42 -07:00
Jeff Verkoeyen
fbb1f20aa2 Internal change
PiperOrigin-RevId: 332151481
2020-09-16 21:01:21 -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
da4b8f7c7f Fix mdc_elevationDidChangeBlock block parameter types for Xcode 12
PiperOrigin-RevId: 331843566
2020-09-15 13:39:15 -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
eb82984224 Internal change
PiperOrigin-RevId: 331764642
2020-09-15 07:31:56 -07:00
Yun Zhang
aba747b480 Automated g4 rollback of changelist 331153646.
*** Reason for rollback ***

This is causing regression b/168438879, when receiving .screenchanged notification, we switch focus to other element on the page, and this cause the snackbar to auto dismiss.

*** Original change description ***

Enable shouldDismissOnOverlayTap for VO enabled scenario

BEGIN_PUBLIC

Enable shouldDismissOnOverlayTap for VO enabled scenario

END_PUBLIC

Per discussion in b/167609843, based on GAR requirement, snackbar with action button shouldn't self-dismiss when VO is enabled, but If a user does an action then we should/could dismiss the snackbar. This CL uses shouldDismissOnOverlayTap property added in cl/310921840 to enable the dismiss when user takes action on overlay.

***

PiperOrigin-RevId: 331654884
2020-09-14 16:43:49 -07:00
Bryan Oltman
118e0cca26 Bumped version number to 116.0.0. 2020-09-14 16:45:47 -04:00
Nobody
e79fd9b191 [MDCBottomDrawerViewController] Optional dismiss on accessibilityPerformEscape.
This adds a dismissOnAccessibilityPerformEscape bit that allows clients to control whether the bottom drawer should dismiss or not on Z swipe. This is useful for when clients have an extra step before dismissal (e.g. confirmation on dismiss).

PiperOrigin-RevId: 331594189
2020-09-14 20:32:48 +00:00
Bryan Oltman
bb515f43f6 Bumped version number to 116.0.0. 2020-09-14 13:46:02 -04:00
Yarden Eitan
6543af21be [Chips] Have Ripple imitate Ink's behavior in MDCChipView.
PiperOrigin-RevId: 331247922
2020-09-11 16:43:25 -07:00
Yarden Eitan
9f62e64603 Internal change
PiperOrigin-RevId: 331212418
2020-09-11 13:33:36 -07:00
Andrew Overton
0907c19623 [TextControls] Add containerRadius support to filled text field
PiperOrigin-RevId: 331211129
2020-09-11 13:26:29 -07:00
Yarden Eitan
f9b08994dd Bumped version number to 115.1.0. 2020-09-11 15:34:29 -04:00
Yarden Eitan
4bcf88708b [Chips] Deprecate rippleAllowsSelection as we move away from MDCStatefulRippleView and to a simpler MDCRippleView when enableRippleBehavior is set to YES.
PiperOrigin-RevId: 331188085
2020-09-11 11:32:20 -07:00