Nobody
266bcd2e07
There are two separate systems trying to manage touch events on the MDCButton. First, the button itself uses its standard UIControl event infrastructure to trigger ink ripples. Second, an external MDCInkTouchController attaches its own gesture recognizers to do the same thing. This creates a conflict where both systems respond to the same touch, causing two ink animations to be created and displayed simultaneously, which results in incorrect visual feedback.
...
PiperOrigin-RevId: 770704081
2025-06-12 10:10:12 -07:00
Nobody
72aeb257c1
Don't pin BottomNavigationBar trailing/leading edges to safe area in horizontal mode.
...
BEGIN_PUBLIC
Don't pin BottomNavigationBar trailing/leading edges to safe area in horizontal mode.
END_PUBLIC
PiperOrigin-RevId: 770227285
2025-06-11 10:59:07 -07:00
Nobody
d304ac1651
There are two separate systems trying to manage touch events on the MDCButton. First, the button itself uses its standard UIControl event infrastructure to trigger ink ripples. Second, an external MDCInkTouchController attaches its own gesture recognizers to do the same thing. This creates a conflict where both systems respond to the same touch, causing two ink animations to be created and displayed simultaneously, which results...
...
PiperOrigin-RevId: 769464891
2025-06-09 23:15:18 -07:00
Nobody
b2d48fceca
There are two separate systems trying to manage touch events on the MDCButton. First, the button itself uses its standard UIControl event infrastructure to trigger ink ripples. Second, an external MDCInkTouchController attaches its own gesture recognizers to do the same thing. This creates a conflict where both systems respond to the same touch, causing two ink animations to be created and displayed simultaneously, which results in incorrect visual feedback.
...
PiperOrigin-RevId: 769406060
2025-06-09 20:04:56 -07:00
Cody Weaver
1f5bec24e1
#Buttons Fix dynamic type size for icons
...
PiperOrigin-RevId: 765030659
2025-05-29 22:25:48 -07:00
Cody Weaver
f50ff96ac4
#Dialogs Remove legacy tests
...
PiperOrigin-RevId: 764821799
2025-05-29 11:51:05 -07:00
Cody Weaver
4d4bfa7301
#Buttons Refactor private classes to their own files
...
PiperOrigin-RevId: 761992358
2025-05-22 09:15:40 -07:00
Cody Weaver
02899b8392
#Button Fix shadow not animating properly.
...
PiperOrigin-RevId: 761607270
2025-05-21 11:43:22 -07:00
Cody Weaver
5de133336f
#Buttons Update sizing to be the correct size in regular, large and extraLarge.
...
PiperOrigin-RevId: 759638844
2025-05-16 09:12:55 -07:00
Cody Weaver
aba3498ed8
#Buttons Fix shadow not being the correct path.
...
PiperOrigin-RevId: 758702167
2025-05-14 08:52:54 -07:00
Cody Weaver
e28f9c5ada
#Buttons Add explicitSize method
...
PiperOrigin-RevId: 758372107
2025-05-13 14:16:06 -07:00
Cody Weaver
7551027486
#Buttons Update image size to always be square
...
PiperOrigin-RevId: 757920651
2025-05-12 14:48:23 -07:00
Cody Weaver
b29adefbd8
#Buttons Update colors on button size being set
...
PiperOrigin-RevId: 756021438
2025-05-07 15:05:07 -07:00
Nobody
4dccdb6eb0
This change fixes the warning generated by clang when we enable -Wobjc-property-assign-on-object-type flag under the ARC environment.
...
Clang with the flag generates the warning if a property to an Objective-C object/block has an assign attribute because an assign property is treated as unretained property and it potentially becomes a dangling pointer.
The flag is added by https://github.com/llvm/llvm-project/commit/52a503d4f333d
So using strong / weak / copy would be better in general.
selectedViewController is the currently selected view controller and the view must be in viewControllers which is strongly retained.
I think it's safe to use weak to selectedViewController.
PiperOrigin-RevId: 755861552
2025-05-07 08:18:22 -07:00
Cody Weaver
f25aad87ce
#Buttons Add shadow to visual background
...
PiperOrigin-RevId: 754957294
2025-05-05 09:06:22 -07:00
Cody Weaver
4badc9d691
#Buttons Fix clampToMinimumSize method.
...
PiperOrigin-RevId: 753390858
2025-04-30 18:42:14 -07:00
Cody Weaver
f7ef73770d
#Buttons Fix bug where background would be in front of other elements.
...
PiperOrigin-RevId: 752334470
2025-04-28 09:24:40 -07:00
Cody Weaver
a801760a58
#Button Fix issue where legacy clients can't set borderWidth.
...
PiperOrigin-RevId: 751476068
2025-04-25 10:36:35 -07:00
Cody Weaver
91a227c283
#Button Update buttons to not fully round corners on press.
...
PiperOrigin-RevId: 751069425
2025-04-24 11:32:36 -07:00
Nobody
7c19c196a7
Add imageViewSize property to MDCChipView.
...
PiperOrigin-RevId: 750667661
2025-04-23 11:40:01 -07:00
Nobody
fff6a96f73
Add placeholder support to M3CTextView.
...
PiperOrigin-RevId: 748701838
2025-04-17 09:12:08 -07:00
Cody Weaver
d3a4164630
Internal change
...
PiperOrigin-RevId: 748103951
2025-04-15 18:53:54 -07:00
Cody Weaver
8788382546
Internal change
...
PiperOrigin-RevId: 748102561
2025-04-15 18:46:30 -07:00
Cody Weaver
2fed28c5d8
Internal change
...
PiperOrigin-RevId: 748022021
2025-04-15 14:26:07 -07:00
Cody Weaver
eb212f39b5
Internal change
...
PiperOrigin-RevId: 747980927
2025-04-15 12:38:41 -07:00
Cody Weaver
b78cffedb0
Internal change.
...
PiperOrigin-RevId: 747874253
2025-04-15 07:55:52 -07:00
Cody Weaver
731442f0dc
#Buttons Fix bug where corners wouldn't update if ubtton size wasn't set before.
...
PiperOrigin-RevId: 747507015
2025-04-14 11:49:27 -07:00
Cody Weaver
1fcbd02110
#Buttons Update buttons to support outline at all sizes
...
PiperOrigin-RevId: 747495810
2025-04-14 11:19:20 -07:00
Frank Wang
18bcdffdfc
Test updates for bottom navigation.
...
PiperOrigin-RevId: 747445026
2025-04-14 09:13:52 -07:00
Cody Weaver
74e7860bbb
#Buttons Update the setCapsuleCornersBasedOn:size method to account for width.
...
PiperOrigin-RevId: 745389893
2025-04-08 20:03:08 -07:00
Nobody
f93b1dcc0f
Adds a new property to the M3CTextField that allows setting and preserving the placeholder text color, ensuring it remains consistent even when the placeholder text content changes.
...
PiperOrigin-RevId: 744850210
2025-04-07 14:27:30 -07:00
Nobody
a33768e631
Adds placeholder support to M3CTextView
...
PiperOrigin-RevId: 744047752
2025-04-04 13:16:51 -07:00
Cody Weaver
9c5a3d91e7
#Buttons Update sizeThatFits and intrinsicContentSize to not account for minimumHeight or minimumWidth
...
PiperOrigin-RevId: 744022303
2025-04-04 11:57:28 -07:00
Nobody
9272490b67
Adds placeholder support to M3CTextView
...
PiperOrigin-RevId: 744019565
2025-04-04 11:50:39 -07:00
Cody Weaver
be61b671e5
#Buttons Add support for mini UIKit Button
...
PiperOrigin-RevId: 743706218
2025-04-03 14:51:06 -07:00
Nobody
9c68b50602
Add a property numberOfLinesInTextView to MDCBannerView that controls the maximum number of lines displayed in the text View. The text view becomes scrollable to display the rest of the content if this limit is exceeded.
...
PiperOrigin-RevId: 741187500
2025-03-27 09:50:20 -07:00
Nobody
487329ba2b
Add support to MDCBannerView to support multiple lines of text within leading and trailing buttons.
...
PiperOrigin-RevId: 739319320
2025-03-21 15:38:22 -07:00
Nobody
e7a6b602b4
Add new item layout to align image and text to top with padding in between, and a new property to manage which image-and-text item layout to use.
...
PiperOrigin-RevId: 735890394
2025-03-11 14:27:52 -07:00
Nobody
719af90592
Add properties to customize tab bar item view content insets, padding between image and title, and minimum height for title and image layout.
...
PiperOrigin-RevId: 734585238
2025-03-07 09:28:26 -08:00
Nobody
23f7050e7e
Removes height anchor that manually fixed Banner buttons heights for long text and larger font sizes.
...
Removes scrollable text of the text view that is dependent upon Button text size.
PiperOrigin-RevId: 733164049
2025-03-03 20:53:06 -08:00
Cody Weaver
d3f0d79c8c
#Buttons Fix bug where symbol wouldn't resize after button size being set.
...
PiperOrigin-RevId: 733073344
2025-03-03 15:02:11 -08:00
Cody Weaver
a88381e75c
#Buttons Clean up implementation file of missing API annotations.
...
PiperOrigin-RevId: 732944928
2025-03-03 09:08:20 -08:00
Cody Weaver
7113d41e99
#Buttons Add docs to setButtonSize method
...
PiperOrigin-RevId: 732168855
2025-02-28 09:47:43 -08:00
Cody Weaver
78c9615e74
#Buttons Split setFont into setFont and setImageFont
...
PiperOrigin-RevId: 732162553
2025-02-28 09:25:07 -08:00
Cody Weaver
1f758da8d7
#Buttons Fix bug where setting properties before setting button size weren't reflected.
...
PiperOrigin-RevId: 731547135
2025-02-26 19:44:53 -08:00
Cody Weaver
3a85c1e985
[M3CButton] Mark size related methods as available for iOS 15+.
...
PiperOrigin-RevId: 731469668
2025-02-26 15:05:30 -08:00
Cody Weaver
1ca37ab941
#Buttons Add edgeInsetsForImage/Title:forSize:
...
PiperOrigin-RevId: 731123771
2025-02-25 19:50:47 -08:00
Cody Weaver
6e834253df
#Button Add imageEdgeInsets for size API
...
PiperOrigin-RevId: 730971896
2025-02-25 11:51:32 -08:00
Cody Weaver
59075784b3
#Button Add pressedCornerRadius:forSize: API
...
PiperOrigin-RevId: 730935620
2025-02-25 10:22:12 -08:00
Cody Weaver
11d6473f5b
#Buttons Add cornerRadius:forSize: API
...
PiperOrigin-RevId: 730613819
2025-02-24 15:15:19 -08:00