124 Commits

Author SHA1 Message Date
Janette James
b5bbb66b58 Delete UnderlinedTextFieldsTheming
PiperOrigin-RevId: 715118099
2025-01-13 14:58:30 -08:00
Janette James
43f701bd61 Delete FilledTextAreasTheming
PiperOrigin-RevId: 715100357
2025-01-13 14:04:54 -08:00
Nobody
24a0ffbd03 Annotate various Delegate protocols as NS_SWIFT_UI_ACTOR
PiperOrigin-RevId: 708413470
2024-12-20 13:33:55 -08:00
Cody Weaver
62b098735e Internal changes
PiperOrigin-RevId: 557888220
2023-08-17 11:40:13 -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
Randall Li
9b7c57c89c [MDCTextFields] Change deprecation warning to point at migration guide.
PiperOrigin-RevId: 490318418
2022-11-22 13:15:44 -08:00
Nobody
bec0080936 Fixed up imports for TextControls
PiperOrigin-RevId: 472746963
2022-09-07 09:43:08 -07:00
Jeff Verkoeyen
b2bbd50350 Mark all To Be Deprecated APIs as Deprecated.
PiperOrigin-RevId: 460478209
2022-07-12 09:13:52 -07:00
David Collazo
3a4ccf8e3c Mark component To Be Deprecated
Use a UITextField or UITextView instead.

PiperOrigin-RevId: 455135226
2022-06-15 08:25:05 -07:00
Nobody
0b44a810e7 Bring the text field to focus when the trailing assistive label view is tapped inside out.
PiperOrigin-RevId: 447458557
2022-05-09 07:02:02 -07:00
Wenyu Zhang
b457b13005 Internal change.
PiperOrigin-RevId: 417635153
2021-12-21 09:32:05 -08:00
Jeff Verkoeyen
d4447fdffd Remove all pre-iOS 12 logic.
PiperOrigin-RevId: 401219266
2021-10-06 05:29:40 -07:00
Jeff Verkoeyen
08051b7bda Remove all pre-iOS 12 logic.
PiperOrigin-RevId: 400798440
2021-10-04 13:20:55 -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
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
02cf9d713e [TextControls] Fix label truncation when label text changes in the floating position of outlined text controls
PiperOrigin-RevId: 388945490
2021-08-05 08:57:38 -07:00
Andrew Overton
df09e7b521 [TextControls] Fix bug where outline was misplaced when label text was empty string
PiperOrigin-RevId: 388706359
2021-08-04 08:51:41 -07:00
Nobody
6ad84c1a6a [TextControls] Prevent duplicate accessibility label and value audio feedback when placeholder is equal to the label.
Voice Over reads both the accessibility label and the accessibility value in succession.
If no value is set on the text field, the accessibility value will be the placeholder. This means that if a placeholder is set and the value is the same as the label Voice Over will read the same string twice. Ex, "Label, Label, Text Field". This is confusing to the user, so if we determine this to be case, we manually return an empty accessibility value.

PiperOrigin-RevId: 387372773
2021-07-28 09:57:13 -07:00
Nobody
eae90fc9ae Replace instances of "the the" with "the".
PiperOrigin-RevId: 386330844
2021-07-22 15:07:09 -07:00
Andrew Overton
a2a458fd9a [TextControls] Support original "accessibility element" VoiceOver behavior as well as "accessibility container" behavior similar to UITextField's
PiperOrigin-RevId: 385545545
2021-07-19 07:08:17 -07:00
Andrew Overton
ab888ec4b5 [TextControls] Keep floating label within bounds of outlined text controls
PiperOrigin-RevId: 385013413
2021-07-15 14:47:18 -07:00
Nobody
be99633db6 Rollback of ddb161b169
PiperOrigin-RevId: 382748576
2021-07-02 08:59:50 -07:00
Andrew Overton
afbc13663d [TextControls] Expose animationDuration on MDCBaseTextField
PiperOrigin-RevId: 380232003
2021-06-18 11:48:36 -07:00
Andrew Overton
ddb161b169 [TextControls] Refactor MDCBaseTextField VoiceOver Behavior
Closes https://github.com/material-components/material-components-ios/issues/10202

PiperOrigin-RevId: 375141882
2021-05-21 12:38:57 -07:00
Andrew Overton
1bb3249049 [TextControls] Fix duplicate trailingView bug
Closes https://github.com/material-components/material-components-ios/issues/10198.

PiperOrigin-RevId: 373212831
2021-05-11 12:51:08 -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
2a31a3162f [TextControls] Disable label animation when label is truncated
PiperOrigin-RevId: 367256976
2021-04-07 11:12:32 -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
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
b64b0ec231 Internal change
PiperOrigin-RevId: 360230236
2021-03-01 11:04:51 -08:00
Jeff Verkoeyen
25c9049d5a Optimizing imports
PiperOrigin-RevId: 356791916
2021-02-10 12:00:57 -08:00
Andrew Overton
73e404888d [TextControls] Expose density on text fields and text areas
PiperOrigin-RevId: 355204832
2021-02-02 11:00:01 -08:00
Andrew Overton
ee7f2fce52 [TextControls] Fix imports for clang tidy
PiperOrigin-RevId: 354994728
2021-02-01 12:06:15 -08:00
Andrew Overton
48808bfe67 [TextControls] Add placeholderColor property
PiperOrigin-RevId: 351648295
2021-01-13 13:03:49 -08:00
Andrew Overton
08ca10b078 [Multiple components] Ensure swift snippets always come before objc
Closes https://github.com/material-components/material-components-ios/pull/10145

It looks like the diff is pretty easy to comprehend, except for in the LIST file :/ All I'm doing is moving Swift snippets to be in front of Objective-C snippets.

COPYBARA_INTEGRATE_REVIEW=https://github.com/material-components/material-components-ios/pull/10145 from andrewoverton:material-io-bugs 291c5ea23ccb24c3698b67d09896637a3d1130fe
PiperOrigin-RevId: 347868718
2020-12-16 12:05:38 -08:00
Andrew Overton
178fee91ff [TextControls] Rethink sizing behavior with sizing delegate method
PiperOrigin-RevId: 346404233
2020-12-08 13:59:52 -08:00
Andrew Overton
fb4d874f62 [Multiple components] Change component README ToCs to bold paragraph style
PiperOrigin-RevId: 346365613
2020-12-08 11:09:33 -08:00
Andrew Overton
62ccb5c72f [Multiple components] Audit recent docs changes, part 2
Closes https://github.com/material-components/material-components-ios/pull/10135

PiperOrigin-RevId: 345473101
2020-12-03 09:54:14 -08:00
Andrew Overton
8d8763ef71 [Multiple components] Audit recent docs changes, part 1
Closes https://github.com/material-components/material-components-ios/pull/10132

PiperOrigin-RevId: 345256835
2020-12-02 10:10:55 -08:00
Andrew Overton
0c7a12b0c7 [Multiple components] Miscellaneous doc fixes
PiperOrigin-RevId: 345013092
2020-12-01 07:11:52 -08:00
Andrew Overton
16359d718a [TextControls] Expose inter item spacing
PiperOrigin-RevId: 344252502
2020-11-25 07:53:57 -08:00
Andrew Overton
732e39b160 [TextControls] Expose preferredContainerHeight on MDCBaseTextArea
PiperOrigin-RevId: 344161205
2020-11-24 17:34:22 -08:00
Andrew Overton
a349540e26 [TextControls] Add text areas leading/trailing views
PiperOrigin-RevId: 344113091
2020-11-24 12:45:27 -08:00
Andrew Overton
77c77dc0f8 [TextControl] Fix RTL placeholder behavior
PiperOrigin-RevId: 343916453
2020-11-23 13:26:40 -08:00
Andrew Overton
a4d2f5ac0a [TextControls] Modify automatic scrolling behavior
PiperOrigin-RevId: 343850694
2020-11-23 07:55:29 -08:00
Andrew Overton
09d8ea6bf6 [TextControls] Fix Cocoapods build error
PiperOrigin-RevId: 342302593
2020-11-13 11:31:56 -08:00
Andrew Overton
52e9d15a2b [TextControls] Add placeholder to text area
PiperOrigin-RevId: 341453573
2020-11-09 11:53:48 -08:00
Andrew Overton
a180642678 [TextControls] Add text area snapshot tests
PiperOrigin-RevId: 341414643
2020-11-09 08:53:54 -08:00
Andrew Overton
d729b5c464 [TextControls] Use custom leadingView/trailingView instead of UITextField's leftView/rightView
PiperOrigin-RevId: 341104274
2020-11-06 13:09:58 -08:00