---
title: "canImportFileExtension(_:)"
framework: modelio
role: symbol
role_heading: Type Method
path: "modelio/mdlasset/canimportfileextension(_:)"
---

# canImportFileExtension(_:)

Returns a Boolean value that indicates whether the MDLAsset class can read asset data from files with the specified extension.

## Declaration

```swift
class func canImportFileExtension(_ extension: String) -> Bool
```

## Parameters

- `extension`: The filename extension identifying an asset file format.

## Return Value

Return Value true if the MDLAsset class can read asset data from files with the specified extension; otherwise, false.

## Discussion

Discussion If this method returns true, you can use the init(url:) or init(url:vertexDescriptor:bufferAllocator:) initializer to import an asset with the specified filename extension. The set of supported extensions and formats includes: Additional formats may be supported as well.

## See Also

### Creating an Asset

- [init(url:)](modelio/mdlasset/init(url:)-1f4ym.md)
- [init(bufferAllocator:)](modelio/mdlasset/init(bufferallocator:).md)
- [init(url:vertexDescriptor:bufferAllocator:)](modelio/mdlasset/init(url:vertexdescriptor:bufferallocator:)-1tchi.md)
- [init(url:vertexDescriptor:bufferAllocator:preserveTopology:error:)](modelio/mdlasset/init(url:vertexdescriptor:bufferallocator:preservetopology:error:)-510xi.md)
