---
title: "is(compatibleWithFileType:)"
framework: avfoundation
role: symbol
role_heading: Instance Method
path: "avfoundation/avmovie/is(compatiblewithfiletype:)"
---

# is(compatibleWithFileType:)

Returns a Boolean value that indicates whether the system can create a movie header of the specified type.

## Declaration

```swift
func `is`(compatibleWithFileType fileType: AVFileType) -> Bool
```

## Parameters

- `fileType`: A file type to test.

## Return Value

Return Value true if the movie only contains tracks whose media types are allowed by the specified file type; otherwise, false.

## See Also

### Creating and writing headers

- [makeMovieHeader(fileType:)](avfoundation/avmovie/makemovieheader(filetype:).md)
- [writeHeader(to:fileType:options:)](avfoundation/avmovie/writeheader(to:filetype:options:).md)
- [AVMovieWritingOptions](avfoundation/avmoviewritingoptions.md)
