<!--
{
  "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/canExportFileExtension(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "Model I/O"
    ],
    "preciseIdentifier" : "c:objc(cs)MDLAsset(cm)canExportFileExtension:"
  },
  "title" : "canExportFileExtension(_:)"
}
-->

# canExportFileExtension(_:)

Returns a Boolean value that indicates whether the [`MDLAsset`](/documentation/ModelIO/MDLAsset) class can write asset data as a file with the specified format extension.

```
class func canExportFileExtension(_ 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 export asset data in the format 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 [`export(to:)`](/documentation/ModelIO/MDLAsset/export(to:)) method to write an asset to a file using the format identified by the specified extension.

The set of supported formats includes Wavefront Object (`.obj`) and Standard Tessellation Language (`.stl`). 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)