Contents

init(_:_:)

Creates an expectation that Siri calls the intents in the block, or doesn’t call them, as the ordering requires.

Declaration

init(_ ordering: Calls.Ordering = .ordered, @IntentExpectationBuilder _ content: () -> [any AppIntentExpectationProviding])

Discussion

The following shows how you can use the builder syntax:

Calls {
    CreateEventIntent.expect(title: .equals("The expected title"))
}

See Also

Creating a call expectation