0

I have a macOS Catalyst app and I am having issues with the system menu. I would like to keep the Help menu and the search bar. I would like to remove an option from the menu as I get the follow error.

When click on "App Name Help" I get message that help is unavailable. Is this because the app is not published to the App Store yet? Can I remove only this option?

builder.remove()

enter image description here

1 Answer 1

0

I figured this out

Create your menu items (UIActions or UICommand) to be used in the menu. Replace the help menu items using the follow

        // Inside AppDelegate.
        override func buildMenu(with builder: UIMenuBuilder) {
        super.buildMenu(with: builder)
        
        // Replace [] with your menu items
        builder.replaceChildren(ofMenu: .help) { _ in
            []
        }
    }
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.