505 Commits

Author SHA1 Message Date
Cody Weaver
b78cffedb0 Internal change.
PiperOrigin-RevId: 747874253
2025-04-15 07:55:52 -07:00
Nobody
24a0ffbd03 Annotate various Delegate protocols as NS_SWIFT_UI_ACTOR
PiperOrigin-RevId: 708413470
2024-12-20 13:33:55 -08:00
Nobody
ce2ef97f2c Internal change
PiperOrigin-RevId: 583160453
2023-11-16 14:12:48 -08:00
Nobody
58f6375b10 Internal change
PiperOrigin-RevId: 565513516
2023-09-14 16:45:39 -07:00
David Collazo
0453de0aee Remove updateTextColor call from MDCTextInputCommonFundament's layoutSubviewsOfInput.
PiperOrigin-RevId: 560113597
2023-08-25 09:30:00 -07:00
Randall Li
955a770c48 [MDCTextFields] Change deprecation warning to point at migration guide.
PiperOrigin-RevId: 490322152
2022-11-22 13:30:34 -08:00
Nobody
434df91594 Fixed up imports for TextFields
PiperOrigin-RevId: 473773585
2022-09-12 09:57:36 -07:00
Nobody
3713e0d61e Add void to functions in C missing parameters to fix -Wstrict-prototypes warnings.
This warning became more strict after updates in the clang compiler.

The error message that this change fixes is:

```
error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
```
PiperOrigin-RevId: 472723024
2022-09-07 07:52:30 -07:00
Jeff Verkoeyen
34b6d20dca [TextFields] Delete all examples, tests, and documentation.
The component is deprecated. As per our deprecation policy, this means we no longer provide any examples, tests, documentation, or guarantee of runtime stability.

PiperOrigin-RevId: 454725687
2022-06-13 16:36:17 -07:00
Jeff Verkoeyen
56943077d1 [TextFields] Disable deprecated implementation warnings.
These warnings are redundant because the entire component is deprecated.

PiperOrigin-RevId: 454719419
2022-06-13 16:04:05 -07:00
Jeff Verkoeyen
99d2e28542 [TextFields] Update all deprecation notices.
Use standard UITextField and UITextView within a grouped UITableView or UICollectionView interface instead. For floating field titles and error states, use section headers and footers.

PiperOrigin-RevId: 449867688
2022-05-19 17:24:50 -07:00
Wenyu Zhang
b457b13005 Internal change.
PiperOrigin-RevId: 417635153
2021-12-21 09:32:05 -08:00
Cody Weaver
b38f9ff3f5 [TextFields] Remove part of flaky unit test.
PiperOrigin-RevId: 405737965
2021-10-26 14:41:07 -07:00
Jeff Verkoeyen
730b6c6c14 Remove all pre-iOS 12 logic.
PiperOrigin-RevId: 401063073
2021-10-05 13:31:36 -07:00
Jeff Verkoeyen
f1259820f2 Remove all pre-iOS 12 logic.
PiperOrigin-RevId: 401062628
2021-10-05 13:27:45 -07:00
Jeff Verkoeyen
dc067749f1 Remove all pre-iOS 12 logic.
PiperOrigin-RevId: 400786978
2021-10-04 12:36:05 -07:00
Jeff Verkoeyen
c34de39e30 Internal change.
PiperOrigin-RevId: 397316843
2021-09-17 07:45:01 -07:00
Randall Li
502bc5d910 Ran a Swift formatter
PiperOrigin-RevId: 395947664
2021-09-10 09:48:14 -07:00
Alyssa Weiss
1b69273926 Delete MDCTypography font opacities.
PiperOrigin-RevId: 394494448
2021-09-02 10:44:20 -07:00
Jeff Verkoeyen
96cfc7e331 Internal change
PiperOrigin-RevId: 394241967
2021-09-01 08:56:53 -07:00
Nobody
fb70dc99d9 [TextFields] Update the comment for textfield accessibility behavior to be more concise
PiperOrigin-RevId: 393996655
2021-08-31 07:30:40 -07:00
Nobody
abc5919e0c [TextFields] Support original "accessibility element" VoiceOver behavior as well as "accessibility container" behavior similar to UITextField's
PiperOrigin-RevId: 392467735
2021-08-23 10:46:50 -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
Nobody
eae90fc9ae Replace instances of "the the" with "the".
PiperOrigin-RevId: 386330844
2021-07-22 15:07:09 -07:00
Alyssa Weiss
e77917902f Remove mdc_adjustsFontForContentSizeCategorydefault property from MDCTextInputController.
PiperOrigin-RevId: 384327965
2021-07-12 15:16:35 -07:00
Alyssa Weiss
924c49e43b Remove all iOS 10 availability checks from material_components_ios now that only iOS 10+ is supported.
PiperOrigin-RevId: 366437050
2021-04-02 06:33:16 -07:00
Jeff Verkoeyen
9a49fd96f9 Internal change.
PiperOrigin-RevId: 366342462
2021-04-01 15:26:22 -07:00
Jeff Verkoeyen
1c14fb5e7b Internal change.
PiperOrigin-RevId: 363294413
2021-03-16 16:23:36 -07:00
Andrew Overton
a29eb2c3c7 [TextFields] Deprecate MDCTextField and its associated classes/protocols
PiperOrigin-RevId: 360449716
2021-03-02 09:48:45 -08:00
Jeff Verkoeyen
2a8a6ac1c9 Optimizing imports
PiperOrigin-RevId: 357185734
2021-02-12 07:31:35 -08:00
Jeff Verkoeyen
c53f44398e Optimizing imports
PiperOrigin-RevId: 357185618
2021-02-12 07:29:28 -08:00
Jeff Verkoeyen
63988b35da Optimizing imports
PiperOrigin-RevId: 356966165
2021-02-11 07:09:58 -08:00
Jeff Verkoeyen
09a07ca6d2 Internal change
PiperOrigin-RevId: 333130898
2020-09-22 12:11:00 -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
Nobody
b3a632da46 Updates MDCMultilineTextField to better support being embedded in self-sizing cells.
PiperOrigin-RevId: 318269826
2020-06-25 07:49:40 -07:00
Nobody
e214be3b2d Updates MDCMultilineTextField's bottom textfield constraint to use the textInsets as the constant.
This brings parallels the calculation done in sizeThatFits and will ensure the set textInsets are always adhered to.

PiperOrigin-RevId: 318268981
2020-06-25 07:42:40 -07:00
Bryan Oltman
d4880b4600 [TextFields] Return the empty string instead of nil in MDCTextField's accessibilityValue method to avoid VoiceOver defaulting to [super accessibilityValue].
PiperOrigin-RevId: 316103878
2020-06-12 07:55:20 -07:00
Nobody
fb10ae1b1f Add borderRadius property
PiperOrigin-RevId: 309425430
2020-05-01 10:04:46 -07:00
Wenyu Zhang
81bd1dd07f Internal change.
PiperOrigin-RevId: 309284703
2020-04-30 13:09:22 -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
Dave MacLachlan
ebac2a8eb7 As of iOS 9/macOS 10.11 (circa 2015) removing objective C objects from the NSNotificationCenter in - (void)dealloc. is no longer required (the classic example is: [[NSNotificationCenter defaultCenter] removeObserver:self] but there are several variations).
In many cases this is the only thing being done in - (void)dealloc, so we can remove the whole thing.

PiperOrigin-RevId: 307663440
2020-04-21 13:00:30 -07:00
Andrew Overton
512d6a0049 Replace TextControls documentation
This PR primarily replaces the TextControls README with a different README. It also makes the TextControls README the source of the default TextField docs on material.io.

Preview the changes at: https://github.com/andrewoverton/material-components-ios/tree/material-io-text-field/components/TextControls

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

PiperOrigin-RevId: 306473798
2020-04-14 11:05:09 -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
Andrew Overton
d26c963b75 [TextFields] Update TextFields docs
This PR removes docs for MDCTypographyThemer. I noticed this stuff was still here when I got automatically unassigned from [b/145205327](http://b/145205327).

Planning to copybara this in.

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

COPYBARA_INTEGRATE_REVIEW=https://github.com/material-components/material-components-ios/pull/9948 from andrewoverton:delete-typography-theming-docs 0c68b8db5ee7aff45792544e3adbce1c60b3c1bf
PiperOrigin-RevId: 302511391
2020-03-23 14:05:17 -07:00
Bryan Oltman
cc3fa165b8 [TextFields] Move protocol definitions into separate header files
PiperOrigin-RevId: 302059436
2020-03-20 11:00:42 -07:00
featherless
057bfd0b95
[TextFields] Lower the error VoiceOver announcement delay to near zero. (#9822)
Prior to this change, error VoiceOver announcements would be initiated half a second after the error state was set, potentially resulting in about half a second of other VoiceOver notifications being announced before being interrupted by the error announcement.

The error announcement is intended to take precedent over the other informative announcements (such as character counts). Unfortunately, the error state is often set before the internal textInputDidChange: event which means that if we fire the error announcement immediately, then the error announcement will be cut off by the textInputDidChange: announcement for character counts. To combat this, https://github.com/material-components/material-components-ios/pull/7256 had introduced a dispatch_after to kick off the error event half a second later.

To address the first problem without breaking the second, this change reduces the delay of the error announcement to 0.05 seconds, a window of time small enough to avoid hearing any of the character count announcement, but large enough to happen after the character count announcement is posted, resulting in the error announcement being the one that is read out.

Closes https://github.com/material-components/material-components-ios/issues/7625
2020-03-03 10:30:42 -05:00
Bryan Oltman
d83af534c3
[TextFields] implement resignFirstResponder in MDCMultilineTextField (#9793) 2020-02-25 16:17:19 -05:00
Bryan Oltman
86b4fbcb2c
[TextFields] Delete deprecated MDCTextFieldTypographyThemer (#9689)
MDCTextFieldTypographyThemer is deprecated and has no internal usage.

Fixes #9661
2020-02-11 18:22:22 -05:00
Cody Weaver
6c2b38e46f [TextFields] Use correct localization API.
We were using the `NSLocalizedStringWithDefaultValue` API which is supposed to be used with the `genstrings` tool. This updates us to use the correct API which is `localizedStringForKey:value:table:`.

For more context on the `genstrings` tool see: https://developer.apple.com/library/archive/documentation/Cocoa/Conceptual/LoadingResources/Strings/Strings.html.

Closes #5616

PiperOrigin-RevId: 292469399
2020-01-30 19:09:59 -08:00