import AppKit class AppDelegate: NSObject, NSApplicationDelegate { var statusItem: NSStatusItem! var menuController: MenuController! func applicationDidFinishLaunching(_ notification: Notification) { // Create the status item in the menu bar statusItem = NSStatusBar.system.statusItem(withLength: NSStatusItem.variableLength) if let button = statusItem.button { // Use a system symbol for the icon button.image = NSImage( systemSymbolName: "photo.on.rectangle.angled", accessibilityDescription: "Haven") } // Initialize the menu controller menuController = MenuController(statusItem: statusItem) } }