Contents

init(_:contentType:)

Creates and opens new documents.

Declaration

@export(implementation) nonisolated init(_ title: LocalizedStringResource, contentType: UTType? = nil)

Parameters

  • title:

    A title resource to use as the button title.

  • contentType:

    An optional content type of the document to create.

See Also

Creating and opening a document