<!--
{
  "availability" : [
    "iOS: 9.0.0 -",
    "iPadOS: 9.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.11.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "ModelIO",
  "identifier" : "/documentation/ModelIO/MDLAsset/canImportFileExtension(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "Model I/O"
    ],
    "preciseIdentifier" : "c:objc(cs)MDLAsset(cm)canImportFileExtension:"
  },
  "title" : "canImportFileExtension(_:)"
}
-->

# canImportFileExtension(_:)

Returns a Boolean value that indicates whether the [`MDLAsset`](/documentation/ModelIO/MDLAsset) class can read asset data from files with the specified extension.

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

## Parameters

`extension`

The filename extension identifying an asset file format.

## Return Value

<doc://com.apple.documentation/documentation/Swift/true> if the [`MDLAsset`](/documentation/ModelIO/MDLAsset) class can read asset data from files with the specified extension; otherwise, <doc://com.apple.documentation/documentation/Swift/false>.

## Discussion

If this method returns <doc://com.apple.documentation/documentation/Swift/true>, you can use the [`init(url:)`](/documentation/ModelIO/MDLAsset/init(url:)-1f4ym) or [`init(url:vertexDescriptor:bufferAllocator:)`](/documentation/ModelIO/MDLAsset/init(url:vertexDescriptor:bufferAllocator:)-1tchi) initializer to import an asset with the specified filename extension.

The set of supported extensions and formats includes:

- `.abc`: Alembic
- `.usd`, `.usda`, `.usdc`: Universal Scene Description
- `.usdz`: Universal Scene Description (Mobile)
- `.ply`: Polygon
- `.obj`: Wavefront Object
- `.stl`: Standard Tessellation Language

Additional formats may be supported as well.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)