I have a strange issue for my SwiftUI based App on macOS.
Opening and saving a file works well when the app is already open.
But when I double click a file in Finder to launch the App the file is not opened.
When I double click the file again it gets loaded.
I assume that I missed something simple but I can't get a clue from documentation and internet searching.
Any clue how to proceed to open a file on application launch?