-
Notifications
You must be signed in to change notification settings - Fork 948
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This CL adds the ability to inject a custom UITextField/M3CInsetTextF…
…ield subclass into M3CTextField. This makes it so that integrators are not restricted by the fact that M3CTextField wraps UITextField instead of inheriting from it (unlike MDCTextField). It allows integrators to still use any of the modifications they did by subclassing MDCTextField, while being able to benefit from M3CTextField. One use-case/blocker we faced on our team was the inability to control cut/copy/paste behavior. This requires subclassing UITextField and overriding `canPerformAction`. PiperOrigin-RevId: 584138917
- Loading branch information
1 parent
ce2ef97
commit 9550d68
Showing
1 changed file
with
30 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters