Contents

init(_:contentType:)

Creates and opens new documents.

Declaration

init(_ label: Text? = nil, contentType: UTType? = nil)

Parameters

  • label:

    A label to use for the button.

  • contentType:

    An optional content type of the document to create.