SwiftenumTeaUI

enum TeaUI.MenuGroup

Structure

What a query’s scopes step through. Every node here can be matched — see the syntax.

inherits{}

Members 15

  1. casecase custom(identifier: String, title: String, location: TeaUI.MenuGroup.Location, type: TeaUI.MenuGroup.GroupType, children: [TeaUI.MenuGroupable])
  2. casecase dynamicCustom(identifier: String, provider: TeaUI.DynamicMenuGroupProviderType)
  3. casecase existing(identifier: UIMenuIdentifier, remove: [UIMenuIdentifier], groups: [TeaUI.MenuGroup])
  4. casecase modernCustom(identifier: String, title: String, symbolName: String?, location: TeaUI.MenuGroup.Location, type: TeaUI.MenuGroup.GroupType, children: [TeaUI.MenuGroupable])
  5. initinit(title: String, symbolName: String?, location: TeaUI.MenuGroup.Location, type: TeaUI.MenuGroup.GroupType, children: [TeaUI.MenuGroupable]) -> TeaUI.MenuGroup
  6. initinit(title: String, location: TeaUI.MenuGroup.Location, type: TeaUI.MenuGroup.GroupType, children: [TeaUI.MenuGroupable]) -> TeaUI.MenuGroup
  7. initinit<A>(command: TeaUI.Command<A>, title: String, symbolName: String?, location: TeaUI.MenuGroup.Location, type: TeaUI.MenuGroup.GroupType, optionTitle: (A) -> String, optionKey: TeaUI.MenuItemOptionKey?, options: [A]) -> TeaUI.MenuGroup
  8. initinit<A, B where B: TeaUI.CommandStateType>(command: TeaUI.StateCommand<A, B>, title: String, symbolName: String?, location: TeaUI.MenuGroup.Location, type: TeaUI.MenuGroup.GroupType, state: TeaUI.MenuItemState, optionTitle: (A) -> String, optionKey: TeaUI.MenuItemOptionKey?, options: [A]) -> TeaUI.MenuGroup
  9. initinit<A, B where A == B.CommandContext, B: TeaUI.MenuGroupOptionProviderType>(command: TeaUI.Command<A>, title: String, location: TeaUI.MenuGroup.Location, type: TeaUI.MenuGroup.GroupType, optionTitle: (A) -> String, optionKey: TeaUI.MenuItemOptionKey?, optionProvider: B) -> TeaUI.MenuGroup
  10. initinit<A>(command: TeaUI.Command<A>, title: String, location: TeaUI.MenuGroup.Location, type: TeaUI.MenuGroup.GroupType, optionTitle: (A) -> String, optionKey: TeaUI.MenuItemOptionKey?, options: [A]) -> TeaUI.MenuGroup
  11. initinit<A, B, C where A == C.CommandContext, B: TeaUI.CommandStateType, C: TeaUI.MenuGroupOptionProviderType>(command: TeaUI.StateCommand<A, B>, title: String, location: TeaUI.MenuGroup.Location, type: TeaUI.MenuGroup.GroupType, state: TeaUI.MenuItemState, optionTitle: (A) -> String, optionKey: TeaUI.MenuItemOptionKey?, optionProvider: C) -> TeaUI.MenuGroup
  12. initinit<A, B where B: TeaUI.CommandStateType>(command: TeaUI.StateCommand<A, B>, title: String, location: TeaUI.MenuGroup.Location, type: TeaUI.MenuGroup.GroupType, state: TeaUI.MenuItemState, optionTitle: (A) -> String, optionKey: TeaUI.MenuItemOptionKey?, options: [A]) -> TeaUI.MenuGroup
  13. initinit(provider: TeaUI.DynamicMenuGroupProviderType) -> TeaUI.MenuGroup
  14. initinit(_: UIMenuIdentifier, remove: [UIMenuIdentifier], groups: [TeaUI.MenuGroup]) -> TeaUI.MenuGroup
  15. varvar groupItem: TeaUI.MenuGroupItem { get }
enum MenuGroup {
    enum GroupType {
        case inline
        case nested
    }
    enum Location {
        case before(__C.UIMenuIdentifier)
        case after(__C.UIMenuIdentifier)
        case infer
        case atStart
        case atEnd
    }
    case existing(identifier: __C.UIMenuIdentifier, remove: [__C.UIMenuIdentifier], groups: [TeaUI.MenuGroup])
    case custom(identifier: Swift.String, title: Swift.String, location: TeaUI.MenuGroup.Location, type: TeaUI.MenuGroup.GroupType, children: [any TeaUI.MenuGroupable])
    case modernCustom(identifier: Swift.String, title: Swift.String, symbolName: Swift.String?, location: TeaUI.MenuGroup.Location, type: TeaUI.MenuGroup.GroupType, children: [any TeaUI.MenuGroupable])
    case dynamicCustom(identifier: Swift.String, provider: any TeaUI.DynamicMenuGroupProviderType)

    init(title: Swift.String, symbolName: Swift.String?, location: TeaUI.MenuGroup.Location, type: TeaUI.MenuGroup.GroupType, children: [any TeaUI.MenuGroupable])
    init(title: Swift.String, location: TeaUI.MenuGroup.Location, type: TeaUI.MenuGroup.GroupType, children: [any TeaUI.MenuGroupable])
    init<A>(command: TeaUI.Command<A>, title: Swift.String, symbolName: Swift.String?, location: TeaUI.MenuGroup.Location, type: TeaUI.MenuGroup.GroupType, optionTitle: (_: A) -> Swift.String, optionKey: TeaUI.MenuItemOptionKey?, options: [A])
    init<A, B>(command: TeaUI.StateCommand<A, B>, title: Swift.String, symbolName: Swift.String?, location: TeaUI.MenuGroup.Location, type: TeaUI.MenuGroup.GroupType, state: TeaUI.MenuItemState, optionTitle: (_: A) -> Swift.String, optionKey: TeaUI.MenuItemOptionKey?, options: [A]) where B: TeaUI.CommandStateType
    init<A, B>(command: TeaUI.Command<A>, title: Swift.String, location: TeaUI.MenuGroup.Location, type: TeaUI.MenuGroup.GroupType, optionTitle: @escaping (_: A) -> Swift.String, optionKey: TeaUI.MenuItemOptionKey?, optionProvider: B) where A == B.CommandContext, B: TeaUI.MenuGroupOptionProviderType
    init<A>(command: TeaUI.Command<A>, title: Swift.String, location: TeaUI.MenuGroup.Location, type: TeaUI.MenuGroup.GroupType, optionTitle: (_: A) -> Swift.String, optionKey: TeaUI.MenuItemOptionKey?, options: [A])
    init<A, B, C>(command: TeaUI.StateCommand<A, B>, title: Swift.String, location: TeaUI.MenuGroup.Location, type: TeaUI.MenuGroup.GroupType, state: TeaUI.MenuItemState, optionTitle: @escaping (_: A) -> Swift.String, optionKey: TeaUI.MenuItemOptionKey?, optionProvider: C) where A == C.CommandContext, B: TeaUI.CommandStateType, C: TeaUI.MenuGroupOptionProviderType
    init<A, B>(command: TeaUI.StateCommand<A, B>, title: Swift.String, location: TeaUI.MenuGroup.Location, type: TeaUI.MenuGroup.GroupType, state: TeaUI.MenuItemState, optionTitle: (_: A) -> Swift.String, optionKey: TeaUI.MenuItemOptionKey?, options: [A]) where B: TeaUI.CommandStateType
    init(provider: any TeaUI.DynamicMenuGroupProviderType)
    init(_: __C.UIMenuIdentifier, remove: [__C.UIMenuIdentifier], groups: [TeaUI.MenuGroup])

    var groupItem: TeaUI.MenuGroupItem {
        get
    }
}