<!--
{
  "availability" : [
    "iOS: 27.3.0 -",
    "iPadOS: 27.3.0 -",
    "macOS: 27.3.0 -",
    "visionOS: 27.3.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SiriEvaluations",
  "identifier" : "/documentation/SiriEvaluations/Finds/init(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Siri Evaluations"
    ],
    "preciseIdentifier" : "s:15SiriEvaluations5FindsVyACSay17AppIntentsTesting0D26EntityExpectationProviding_pGyXEcfc"
  },
  "title" : "init(_:)"
}
-->

# init(_:)

Creates an expectation that Siri surfaces each entity in the block by search or resolution.

```
init(@EntityFindExpectationBuilder _ content: () -> [any AppEntityExpectationProviding])
```

## Discussion

A found entity carries the properties Siri read for it before its next intent ran, from your
app’s Spotlight index or from your app. A property Siri never read has no value: a check that
needs one fails, and `.isNil` holds on it. A property of the entity itself whose name begins with
`_`, or that is named `liveAppEntityFeedId`, is never relayed, so `.isNil` holds on it too.

The following shows how you can use the builder syntax:

```swift
Finds {
    EventEntity.expect(title: .equals("The expected title"))
}
```

---

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)