BLACK FRIDAY SALE: Save 50% on all my Swift books and bundles! >>

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?

2      

Boy, I really wish there were better resources that were easily findable. The closest I've found so far is this:

https://wiki.lazarus.freepascal.org/Add_an_Apple_Help_Book_to_your_macOS_app

This page tells how to construct a "help book" out of a bunch of HTML pages, but it doesn't say how to tell Xcode to bundle that book together with the application code when building an application bundle.

   

Save 50% in my Black Friday sale.

SAVE 50% To celebrate Black Friday, all our books and bundles are half price, so you can take your Swift knowledge further without spending big! Get the Swift Power Pack to build your iOS career faster, get the Swift Platform Pack to builds apps for macOS, watchOS, and beyond, or get the Swift Plus Pack to learn advanced design patterns, testing skills, and more.

Save 50% on all our books and bundles!

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

Archived topic

This topic has been closed due to inactivity, so you can't reply. Please create a new topic if you need to.

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.