Contents

init(filenameExtension:conformingTo:)

Creates a type that represents the specified filename extension and conforms to an existing type.

Declaration

convenience init?(filenameExtension: String, conformingTo supertype: UTType)

Parameters

  • filenameExtension:

    The filename extension.

  • supertype:

    The type the resulting type must conform to, such as Data or Package.

Discussion

If the system recognizes the filename extension, the intializer returns the corresponding type; otherwise, the initializer returns a dynamic type whose isDeclared and isPublic properties are both set to false.

See Also

Creating a type