---
title: "init(fetchAttributes:)"
framework: corespotlight
role: symbol
role_heading: Initializer
path: "corespotlight/corespotlightsource/init(fetchattributes:)"
---

# init(fetchAttributes:)

## Declaration

```swift
init(fetchAttributes: [SearchableItemAttribute] = [])
```

## See Also

### Creating a Spotlight source

- [init(searchableIndexDelegate:fetchAttributes:)](corespotlight/corespotlightsource/init(searchableindexdelegate:fetchattributes:).md)
