Modifiers
menuOrder
Sets the preferred order of items for menus presented from this view. With the default automatic order, a menu that opens upward displays its items in reverse. Pass fixed to always keep the order the items were provided in.
menuOrder(order)
| Parameter | Type | Description |
|---|---|---|
order | MenuOrderType | The preferred menu item ordering. |
Sets the preferred order of items for menus presented from this view. With the default automatic order, a menu that opens upward displays its items in reverse. Pass fixed to always keep the order the items were provided in.
Returns: ModifierConfig
See: Official SwiftUI documentation.
Works with
Sources
The original Expo docs for this page:
- menuOrder (Modifiers) (
source-of-truth/versions/v57.0.0/sdk/ui/swift-ui/modifiers.md)