1
0

MenuModifiers.swift 367 B

123456789
  1. extension View {
  2. /// Sets the menu sort order, for backends that support it.
  3. ///
  4. /// This is currently only respected by UIKitBackend, and only on iOS/tvOS
  5. /// 16 and up. On other backends, it always behaves as if set to ``MenuOrder/fixed``.
  6. public func menuOrder(_ order: MenuOrder) -> some View {
  7. environment(\.menuOrder, order)
  8. }
  9. }