how do I started document based project?

Asked on 2024-10-03

1 search

To get started with a document-based project, you can follow the guidance from the session titled "Evolve your document launch experience" from WWDC 2024. Here are the steps you can take:

  1. Recompile with iOS 18 SDK: Begin by recompiling your SwiftUI apps with the iOS 18 SDK. This will allow you to adopt the new customizable launch experience.

  2. Document Group Launch Scene: Add a document group launch scene to customize the launch experience and showcase your app's unique identity.

  3. UIKit Apps: For UIKit apps, make the UIDocumentViewController the root view controller and apply your customizations to the launch options.

  4. Create Document Action: In your view controller subclass, assign the launch options' primary or secondary action to be a create document action. This involves handling requests for new documents and assigning the delegate of the launch options browser view controller.

  5. Template Picker: Build a template picker with a custom design that suits your app best. This allows users to create documents from predefined templates.

For more detailed guidance, you can refer to the session Evolve your document launch experience (08:31) which covers these steps in detail.