Contents

init(_:)

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

Declaration

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:

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

See Also

Creating a find expectation