Modifiers
gridCellColumns
Tells a view that acts as a cell in a grid to span the specified number of columns.
gridCellColumns(count)
| Parameter | Type | Description |
|---|---|---|
count(optional) | number | The number of columns that the view should consume when placed in a grid row. |
Tells a view that acts as a cell in a grid to span the specified number of columns.
Returns: ModifierConfig
A view that occupies the specified number of columns in a grid row.
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:
- gridCellColumns (Modifiers) (
source-of-truth/versions/v57.0.0/sdk/ui/swift-ui/modifiers.md)