Contents

SiriTipView

A SwiftUI view that displays the phrase someone uses to invoke an App Shortcut.

Declaration

@MainActor @preconcurrency struct SiriTipView

Overview

Use a SiriTipView to display the spoken phrase for the intent you specify. Include an instance of your intent when you create the view, and bind the view to a Boolean to handle the view’s presentation. The following example shows how to configure a button for a reorder intent and bind it to an isVisible variable.

SiriTipView(intent: ReorderIntent(), isVisible: $isVisible)
    .siriTipViewStyle(.dark)

Note that you must use the AppIntent in an AppShortcut. Otherwise this will display an empty view.

Topics

Creating the view

See Also

Tip views