Contents

result(value:snippetIntent:)

Indicates that a completed app intent returns a value and displays an interactive snippet.

Declaration

static func result<Value>(value: Value, snippetIntent: some SnippetIntent = EmptySnippetIntent()) -> Self where Self == IntentResultContainer<Value, Never, _SnippetIntentContainer, Never>, Value : _IntentValue

Parameters

  • value:

    The value that the app intent returns after completion.

  • snippetIntent:

    An app intent that displays an interactive snippet.