×

Get Uniform Type Identifier

iOS 15 +

Notes

Gets the Uniform Type Identifier (UTI) of the input file. For example, a JPEG file would return “public.jpeg”.

Syntax

getUniformTypeIdentifier(file: <#Variable#>)

Example

getUniformTypeIdentifier(file: ShortcutInput)