Looks like this is something that works for now, unintended or not. Should that break in the future, I'll add my settings menu item alongside the system one. Thanks!
UIMainMenuSystem.shared.setBuildConfiguration(config) { builder in
var items: [UIMenuElement] = []
items.append(
UIKeyCommand(
title: String(localized: "Settings..."),
image: UIImage(systemName: "gearshape"),
action: #selector(MainTabBarController.showSettings),
input: ",",
modifierFlags: [.command]
)
)
items.append(
UIKeyCommand(
title: String(localized: "Editor Settings..."),
image: UIImage(systemName: "textformat"),
action: #selector(MainTabBarController.showSettingsViewController),
input: ",",
modifierFlags: [.command, .alternate]
)
)
items.append(
UICommand(
title: String(localized: "System Settings..."),
image: UIImage(systemName: "gear"),
action: #selector(MainTabBarController.showSettingsViewController2)
)
)
let menu = UIMenu(
title: "Gamery",
identifier: .application,
options: .displayInline,
children: items
)
builder.replace(menu: .application, with: menu)
}