UTType
A structure that represents a type of data to load, send, or receive.
Declaration
struct UTTypeOverview
The UTType instance may represent files on disk, abstract data types with no on-disk representation, or entirely unrelated hierarchical classification systems, such as hardware. Each instance has a unique identifier, and helpful properties, such as preferredFilenameExtension and preferredMIMEType.
A UTType instance may provide additional information related to the type. For example, it may include a localized user-facing description, a reference URL to technical documentation about the type, or its version number. You can look up types by their conformance to get either a type or a list of types that are relevant to your use case.
To define your own types in your app’s Info.plist, see Defining file and data types for your app.
Topics
Looking up a type
Creating a type
init(_:)init(mimeType:conformingTo:)init(filenameExtension:conformingTo:)init(tag:tagClass:conformingTo:)init(exportedAs:conformingTo:)init(importedAs:conformingTo:)
Identifying a type
Obtaining tags
Obtaining additional type information
Checking a type’s relationship to another type
supertypesconforms(to:)isSubtype(of:)isSupertype(of:)Navigating Hierarchical Data Using Outline and Split Views
Describing a type
3D content
Apple 3D content
Apple file system objects
Apple image formats
Apple system types
frameworkapplicationBundleapplicationExtensionspotlightImporterquickLookGeneratorxpcServicesystemPreferencesPane
Application files
Audio
Audio and video
quickTimeMoviempegmpeg2Videompeg2TransportStreammpeg4Moviempeg4AudioappleProtectedMPEG4VideoappleProtectedMPEG4Audioavi
Compiled programming language sources
assemblyLanguageSourcecHeadercSourcecPlusPlusHeadercPlusPlusSourceobjectiveCPlusPlusSourceobjectiveCSourceswiftSource
Compressed archives
Cryptographic files
Data interchange formats
Executables
Icon images
Images
Internet-specific
Property lists
Shazam
Scripted programming language sources
scriptappleScriptjavaScriptosaScriptosaScriptBundlemakefileshellScriptpythonScriptrubyScriptperlScriptphpScript