---
title: "result(dialog:snippetIntent:)"
framework: appintents
role: symbol
role_heading: Type Method
path: "appintents/intentresult/result(dialog:snippetintent:)"
---

# result(dialog:snippetIntent:)

Indicates that a completed app intent displays an interactive snippet and a success dialog.

## Declaration

```swift
static func result(dialog: IntentDialog, snippetIntent: some SnippetIntent = EmptySnippetIntent()) -> Self where Self == IntentResultContainer<Never, Never, _SnippetIntentContainer, IntentDialog>
```

## Parameters

- `dialog`: A custom success dialog
- `snippetIntent`: The intent responsible for presenting a snippet for this result
