Contents

setIntent(intent:)

Sets an AppIntent for this view. This must be called before presenting the view.

Declaration

@MainActor @preconcurrency final func setIntent<Intent>(intent: Intent) where Intent : AppIntent

Discussion

The provided AppIntent must be a valid App Shortcut for this view to work correctly.