Building Document Based Swiftui Applications

Authoritative guide for building and migrating document-based apps in SwiftUI using the Document protocol (iOS 27 and aligned releases, including macOS Golden Gate). Consult when building a new document-based app; implementing open, edit, save, or export document flows; working with DocumentGroup or DocumentGroupLaunchScene; implementing DocumentReader or DocumentWriter; using FileWrapper via FileWrapperDocumentReader or FileWrapperDocumentWriter; working with package documents; accessing a document's file URL directly; reporting progress during read/write; registering undo actions; migrating from FileDocument or ReferenceFileDocument to the new API; building a read-only document viewer; when autosave is not working in a document app; declaring custom UTType as document formats.

mikker Updated

File contents

mikker/xcode-apple-skills/tree/main/bundled/building-document-based-swiftui-applications commit e6f84f53a0

Frequently asked questions

npx skillmds@latest add mikker/building-document-based-swiftui-applications