---
title: "init(forStoreWith:model:)"
framework: coredata
role: symbol
role_heading: Initializer
path: "coredata/nscoredatacorespotlightdelegate/init(forstorewith:model:)"
---

# init(forStoreWith:model:)

Creates a Core Spotlight delegate with the specified store description and managed object model.

## Declaration

```swift
convenience init(forStoreWith description: NSPersistentStoreDescription, model: NSManagedObjectModel)
```

## Parameters

- `description`: An object that describes the persistent store that contains the entities to index.
- `model`: The managed object model that contains the definitions of the entities to index.

## See Also

### Creating a Core Spotlight Delegate

- [init(forStoreWith:coordinator:)](coredata/nscoredatacorespotlightdelegate/init(forstorewith:coordinator:).md)
