<!--
{
  "availability" : [
    "iOS: 14.0.0 - 17.4.0",
    "iPadOS: 14.0.0 - 17.4.0",
    "visionOS: 1.0.0 - 1.1.0"
  ],
  "documentType" : "symbol",
  "framework" : "CoreML",
  "identifier" : "/documentation/CoreML/MLModelCollection",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Core ML"
    ],
    "preciseIdentifier" : "c:objc(cs)MLModelCollection"
  },
  "title" : "MLModelCollection"
}
-->

# MLModelCollection

A set of Core ML models from a model deployment.

```
class MLModelCollection
```

## Overview

Use a model collection to access the models from a Core ML Model Deployment. For example, you can use a model collection to replace one or more of your app’s built-in models with a newer version.

To access the newest model collection from a deployment, call the [`beginAccessingModelCollectionWithIdentifier:completionHandler:`](/documentation/CoreML/MLModelCollection/beginAccessingModelCollectionWithIdentifier:completionHandler:) type method. Your app can also get a notification when Core ML receives an update to a model collection (see [`didChangeNotification`](/documentation/CoreML/MLModelCollection/didChangeNotification)).

## Topics

### Accessing a model collection

[`beginAccessingModelCollectionWithIdentifier:completionHandler:`](/documentation/CoreML/MLModelCollection/beginAccessingModelCollectionWithIdentifier:completionHandler:)

Requests access to a model collection.

[`endAccessing(identifier:)`](/documentation/CoreML/MLModelCollection/endAccessing(identifier:))

Terminates access to a model collection.

### Identifying a model collection

[`identifier`](/documentation/CoreML/MLModelCollection/identifier)

The name of the model collection, unique to the development team.

[`deploymentID`](/documentation/CoreML/MLModelCollection/deploymentID)

The unique identifier of the model collection’s deployment.

### Retreiving models from a collection

[`entries`](/documentation/CoreML/MLModelCollection/entries)

A dictionary of model entries keyed to the models’ identifiers.

[`MLModelCollection.Entry`](/documentation/CoreML/MLModelCollection/Entry)

A model and its identifier within a model collection.

### Registering for model collection updates

[`didChangeNotification`](/documentation/CoreML/MLModelCollection/didChangeNotification)

The notification the framework sends when it receives an update to a model collection.



---

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)