<!--
{
  "availability" : [
    "iOS: 3.0.0 -",
    "iPadOS: 3.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.4.0 -",
    "tvOS: -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreData",
  "identifier" : "/documentation/CoreData/NSManagedObjectModel/mergedModel(from:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "Core Data"
    ],
    "preciseIdentifier" : "c:objc(cs)NSManagedObjectModel(cm)mergedModelFromBundles:"
  },
  "title" : "mergedModel(from:)"
}
-->

# mergedModel(from:)

Returns a model created by merging all the models found in given bundles.

```
class func mergedModel(from bundles: [Bundle]?) -> NSManagedObjectModel?
```

## Parameters

`bundles`

An array of instances of `NSBundle` to search. If you specify `nil`, then the main bundle is searched.

## Return Value

A model created by merging all the models found in `bundles`.

## Discussion

---

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)