---
title: managedObjectModel
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uimanageddocument/managedobjectmodel
---

# managedObjectModel

The document’s managed object model.

## Declaration

```swift
var managedObjectModel: NSManagedObjectModel { get }
```

## Discussion

Discussion Persistent documents always have a managed object model. The default model is the union of all models in the main bundle. You can specify a configuration to use with modelConfiguration. You can subclass UIManagedDocument to override this method if you need custom behavior.

## See Also

### Managing the Core Data stack

- [configurePersistentStoreCoordinator(for:ofType:modelConfiguration:storeOptions:)](uikit/uimanageddocument/configurepersistentstorecoordinator(for:oftype:modelconfiguration:storeoptions:).md)
- [managedObjectContext](uikit/uimanageddocument/managedobjectcontext.md)
- [persistentStoreOptions](uikit/uimanageddocument/persistentstoreoptions.md)
- [modelConfiguration](uikit/uimanageddocument/modelconfiguration.md)
- [persistentStoreType(forFileType:)](uikit/uimanageddocument/persistentstoretype(forfiletype:).md)
