<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "visionOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "AppIntents",
  "identifier" : "/documentation/AppIntents/SiriTipUIView/setIntent(intent:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "App Intents",
      "UIKit"
    ],
    "preciseIdentifier" : "s:17_AppIntents_UIKit13SiriTipUIViewC9setIntent6intentyx_t0aB00aH0RzlF"
  },
  "title" : "setIntent(intent:)"
}
-->

# setIntent(intent:)

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

```
@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.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)