NEW: Start my new Ultimate Portfolio App course with a free Hacking with Swift+ trial! >>

How to add support for help menu in SwiftUI macOS app.

Forums > SwiftUI

Hello I am creating a macOS SwiftUI app using the SwiftUI app lifecycle. Normally, if you open any macOS app, it has the menu bar items on top with the last one being help. When I run my app right now and press help on the menu bar and then "(Application Name) help" it just says "Help isn't available for (Application Name)". I know about CommandGroup(replacing:) but that lets add a button with an action which wont let me display any view of some sort. How can I add support for the help button?


Hacking with Swift is sponsored by Instabug

SPONSORED Catch bugs as soon as they happen and know exactly why a crash occurred. Instabug's SDK grabs all the logs they need to fix bugs, crashes and performance issues in minutes instead of days. Get screenshots, device details, network logs, repro steps, and tons of other critical insights needed to resolve issues and prioritize product backlogs straight from your dashboard. It only takes a minute to integrate!

Get started now

Sponsor Hacking with Swift and reach the world's largest Swift community!

Reply to this topic…

You need to create an account or log in to reply.

All interactions here are governed by our code of conduct.

Unknown user

You are not logged in

Log in or create account

Link copied to your pasteboard.