Contents

init(viewing:migrationPlan:viewer:)

Instantiates a document group for viewing documents described by the last Schema in the migration plan.

Declaration

init(viewing contentType: UTType, migrationPlan: any SchemaMigrationPlan.Type, viewer: @escaping () -> Content)

Parameters

  • viewing:

    The content type of the document. It should conform to UTType.package.

  • migrationPlan:

    The description of steps required to migrate older document versions so that they can be opened. The last VersionedSchema in the plan is considered to be the current application schema.

  • viewer:

    The viewing UI for the provided document.

See Also

Viewing a document backed by a persistent store