MenuOrder

The order in which a menu presents its content.

StructureiOS 16.0+macOS 13.0+tvOS 16.0+watchOS 9.0+MenuOrder in SwiftUI

Declaration

React
type MenuOrder = 'automatic' | 'fixed' | 'priority';
Swift
struct MenuOrder

Pass a literal, or build one with SwiftUI.MenuOrder from import { SwiftUI } from 'swiftui-react-native'.

Type properties

  • 'automatic'SwiftUI.MenuOrder.automatic

    The ordering of the menu chosen by the system for the current context.

  • 'fixed'SwiftUI.MenuOrder.fixed

    Order items from top to bottom.

  • 'priority'SwiftUI.MenuOrder.priority

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

Overview

You can configure the preferred menu order using the View.menuOrder(_:) view modifier.

From Apple’s SwiftUI documentation. Code samples there are Swift.

Used by

See also

More in Presentation.