mirror of
https://github.com/material-components/material-components-ios.git
synced 2026-02-20 08:27:32 +08:00
This is the first of three APIs required to support customized action cell layouts necessary for internal design guidelines. The `contentEdgeInsets` API allows configuring the inset/outset values of the content rectangle of each action cell. Part of #8709
1.4 KiB
1.4 KiB
Customization
Positioning Action Sheet Actions
The layout of the Action Sheet list items can be adjusted with the
contentEdgeInsets API. Positive values will inset the content and negative
values will outset the conent. The insets apply to all action items.
Action Sheet showing three items with default content insets.
For example, setting top and bottom insets (positive values) will reduce the height of the Action list items.
Action Sheet showing three items with top and bottom content edge insets.
Setting a left outset (negative value) and right inset (positive value) will shift the Action's content to the trailing edge.
Action Sheet showing three items with a left content edge outset and right inset shifting content to the right.