One Logo Pool Ball
SwiftUI · IOS API REFERENCE

MenuOrder

struct · iOS 16.0+ · SDK 27.1

struct MenuOrder

The order in which a menu presents its content. You can configure the preferred menu order using the ``View/menuOrder(_:)`` view modifier.

Members (3)

get · iOS 16.0+

fixed

TypeScript
static get fixed(): MenuOrder
Swift declaration
static let fixed: MenuOrder

Order items from top to bottom.

get · iOS 16.0+

priority

TypeScript
static get priority(): MenuOrder
Swift declaration
static let priority: MenuOrder

Keep the first items closest to user's interaction point.

get · iOS 16.0+

automatic

TypeScript
static get automatic(): MenuOrder
Swift declaration
static let automatic: MenuOrder

The ordering of the menu chosen by the system for the current context. On iOS, this order resolves to ``fixed`` for menus presented within scrollable content. Pickers that use the ``PickerStyle/menu`` style also default to ``fixed`` order. In all other cases, menus default to ``priority`` order. On macOS, tvOS and watchOS, the `automatic` order always resolves to ``fixed`` order.

Skipped declarations

No declarations were skipped in this snapshot.

All SwiftUI types →