<!--
{
  "availability" : [
    "iOS: 13.0.0 - 27.0.0",
    "iPadOS: 13.0.0 - 27.0.0",
    "macCatalyst: 13.1.0 - 27.0.0",
    "visionOS: 1.0.0 - 27.0.0",
    "watchOS: 6.0.0 - 27.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "SiriKit",
  "identifier" : "/documentation/Intents/INTaskPriorityResolutionResult/success(with:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "Intents"
    ],
    "preciseIdentifier" : "c:objc(cs)INTaskPriorityResolutionResult(cm)successWithResolvedTaskPriority:"
  },
  "title" : "success(with:)"
}
-->

# success(with:)

Creates an object whose resolution involves successfully matching the specified parameter.

```
class func success(with resolvedTaskPriority: INTaskPriority) -> Self
```

## Parameters

`resolvedTaskPriority`

The object that resolves the requested parameter of the intent. This value may be different than the one specified in the intent object.

## Return Value

A new [`INTaskPriorityResolutionResult`](/documentation/Intents/INTaskPriorityResolutionResult) object.

## Discussion

Use this method to create a result object when you successfully identify the task priority to modify.

---

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)