---
title: "isNativeType(_:)"
framework: appkit
role: symbol
role_heading: Type Method
path: "appkit/nsdocument/isnativetype(_:)"
---

# isNativeType(_:)

Returns a Boolean value that indicates whether the document can read and write the data natively.

## Declaration

```swift
class func isNativeType(_ type: String) -> Bool
```

## Parameters

- `type`: The string that identifies the document type to test.

## Return Value

Return Value true if the document type is a native type; otherwise, false.

## See Also

### Managing File Type Information

- [readableTypes](appkit/nsdocument/readabletypes.md)
- [writableTypes](appkit/nsdocument/writabletypes.md)
- [writableTypes(for:)](appkit/nsdocument/writabletypes(for:).md)
- [fileNameExtension(forType:saveOperation:)](appkit/nsdocument/filenameextension(fortype:saveoperation:).md)
