Contents

data(contentType:)

Requests an IntentFile representation as binary data of the requested content type if possible.

Declaration

func data(contentType: UTType) async throws -> Data

Parameters

  • contentType:

    A content type of the returned data.

Discussion

If the IntentFile is backed by a file URL, this might cause loading the entire file contents into memory.