---
title: MLModelCollection
framework: Core ML
role: symbol
role_heading: Class
platforms: [iOS 14.0+, iPadOS 14.0+, Mac Catalyst 14.0+, visionOS 1.0+]
path: coreml/mlmodelcollection
---

# MLModelCollection

A set of Core ML models from a model deployment.

## Declaration

```swift
class MLModelCollection
```

## Overview

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: type method. Your app can also get a notification when Core ML receives an update to a model collection (see didChangeNotification).

## Topics

### Accessing a model collection

- [endAccessing(identifier:)](coreml/mlmodelcollection/endaccessing(identifier:).md)

### Identifying a model collection

- [identifier](coreml/mlmodelcollection/identifier.md)
- [deploymentID](coreml/mlmodelcollection/deploymentid.md)

### Retreiving models from a collection

- [entries](coreml/mlmodelcollection/entries.md)
- [MLModelCollection.Entry](coreml/mlmodelcollection/entry.md)

### Registering for model collection updates

- [didChangeNotification](coreml/mlmodelcollection/didchangenotification.md)

## Relationships

### Inherits From

- [NSObject](objectivec/nsobject-swift.class.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
