Contents

urlForApplication(toOpen:)

Returns the URL to the default app to open the specified content type.

Declaration

func urlForApplication(toOpen contentType: UTType) -> URL?

Parameters

  • contentType:

    The content type to open.

Return Value

The URL of the default app that opens the specified contentType. Returns nil if no app can open the content type.

See Also

Requesting Information