---
title: "init(type:creator:)"
framework: fileprovider
role: symbol
role_heading: Initializer
path: "fileprovider/nsfileprovidertypeandcreator/init(type:creator:)"
---

# init(type:creator:)

Creates a structure that contains the provided type and creator codes.

## Declaration

```swift
init(type: OSType, creator: OSType)
```

## Parameters

- `type`: The first word of the FinderInfo structure. It matches the file type code.
- `creator`: The second word of the FinderInfo structure. It matches the creator code.

## See Also

### Creating Type and Creator Structures

- [init()](fileprovider/nsfileprovidertypeandcreator/init().md)
