I had a similar issue with SwiftUI but I was calling the image correctly
I was declaring the statusItem inside of didFinishLaunching as there were some bugs
The solution was the declare the statusItem as an optional out side didFInishLaunching
Topic:
UI Frameworks
SubTopic:
AppKit
Tags: