---
title: "init(entities:)"
framework: appintents
role: symbol
role_heading: Initializer
platforms: [iOS 27.0+, iPadOS 27.0+, Mac Catalyst 27.0+, macOS 27.0+, tvOS 27.0+, visionOS 27.0+, watchOS 27.0+]
path: "appintents/entitycollectionsearchcriteria/init(entities:)"
---

# init(entities:)

Creates a new search criteria type with the specified entity collection.

## Declaration

```swift
init(entities: EntityCollection<Entity>)
```

## Parameters

- `entities`: An entity collection with the search results to display.
