<!--
{
  "availability" : [
    "iOS: 18.0.0 -",
    "iPadOS: 18.0.0 -",
    "macCatalyst: 18.0.0 -",
    "macOS: 15.0.0 -",
    "visionOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CreateMLComponents",
  "identifier" : "/documentation/CreateMLComponents/TimeSeriesClassifier/Model/export(to:metadata:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Create ML Components",
      "CreateMLComponents"
    ],
    "preciseIdentifier" : "s:18CreateMLComponents20TimeSeriesClassifierV5ModelV6export2to8metadatay10Foundation3URLV_AA0F8MetadataVtKF"
  },
  "title" : "export(to:metadata:)"
}
-->

# export(to:metadata:)

Exports this transformer as a CoreML model package with user-supplied metadata.

```
func export(to url: URL, metadata: ModelMetadata) throws
```

## Parameters

`url`

The location to write the model into.

`metadata`

Contextual user-provided information.

---

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)