globalMenuAddSeparator(menuRoot:index:)

    Adds a separator between items to the global menu with ID menuRoot. Separators also occupy an index.

    DisplayServer.swift:1215
    static func globalMenuAddSeparator(menuRoot: String, index: Int32 = -1) -> Int32

    Returns index of the inserted item, it’s not guaranteed to be the same as index value.

    Supported system menu IDs:

    Other members in extension

    Types

    Type members