Modifiers
gridCellUnsizedAxes
Asks grid layouts not to offer the view extra size in the specified axes.
gridCellUnsizedAxes(axes)
| Parameter | Type | Description |
|---|---|---|
axes(optional) | 'vertical' | 'horizontal' | The dimensions in which the grid shouldn’t offer the view a share of any available space. This prevents a flexible view like a Spacer, Divider, or Color from defining the size of a row or column. |
Asks grid layouts not to offer the view extra size in the specified axes.
Returns: ModifierConfig
A view that doesn’t ask an enclosing grid for extra size in one or more axes.
Works with
This modifier works with any view. These components accept it:
- VStack
- HStack
- ZStack
- LazyVStack
- LazyHStack
- Group
- Spacer
- Divider
- Overlay
- ScrollView
- Button
- Toggle
- Checkbox
- Slider
- Picker
- DatePicker
- ColorPicker
- Link
- ControlGroup
- Menu
- ContextMenu
- TextField
- SecureField
- Text
- Label
- Image
- List
- Form
- Section
- DisclosureGroup
- SwipeActions
- BottomSheet
- Alert
- ConfirmationDialog
- Popover
- ProgressView
- Gauge
- TabView
- AccessoryWidgetBackground
Sources
The original Expo docs for this page:
- gridCellUnsizedAxes (Modifiers) (
source-of-truth/versions/v57.0.0/sdk/ui/swift-ui/modifiers.md)