Scene for my "Application's Menu About "My Application""

I am using SwiftUI to create an app and I have figured out how to present a scene for my preferences window. However I have yet to find a way to modify the "About "My App"" scene. I am not even sure how to ask the question on other forums because I keep getting informations on application menus.

I would like to find information on accessing/changing other menu entries in the menubar (in SwiftUI) an most specifically I would like to find out how to present a custom window (or at least custom information) when the user selects "About "My App""

I guess I don't need a solution but a pointer to documentation that will help me in my quest.

  • So it is a MacOS app ?

Add a Comment

Replies

Change the action associated to the menu.

  • Open Main storyboard and select About menu item
  • remove the default IBAction (click on small x) in the action

  • create an IBAction in AppDelegate
    @IBAction func customAbout(_ sender: NSMenuItem) {
        // Open your custom window
    }
  • connect it to the action field
  • I am not using a storyboard. I am using the SwiftUI environment so I do not have an app delegate or a storyboard. This may be why I am confused because this is what I am used to. It is a Mac App

Add a Comment