Home > Software engineering >  SwiftUI: Is it possible for a document-based app to display a custom view instead of the file picker
SwiftUI: Is it possible for a document-based app to display a custom view instead of the file picker

Time:09-10

I have just started learning swift and I am writing a document-based app. By default, when launching the app without opening any document with it, a file picker would appear.

Is it possible for it to skip the file picker, and display a custom greeting window if no file is opened with the app? How can it be done?

CodePudding user response:

Of course, you can, no one is limiting you to do so, setting your own view controller as an entry point.

Demo: Github

  • Related