<!--
{
  "availability" : [
    "iOS: 10.0.0 -",
    "iPadOS: 10.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 11.0.0 -",
    "tvOS: 14.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 3.2.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SiriKit",
  "identifier" : "/documentation/Intents/INIntegerResolutionResult/success(with:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "Intents"
    ],
    "preciseIdentifier" : "c:objc(cs)INIntegerResolutionResult(cm)successWithResolvedValue:"
  },
  "title" : "success(with:)"
}
-->

# success(with:)

Creates an object whose resolution involves the successful matching of the specified value.

```
class func success(with resolvedValue: Int) -> Self
```

## Parameters

`resolvedValue`

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

## Return Value

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

## Discussion

Use this method to create a result object when you are able to resolve a parameter successfully to a value in your own internal data structures.

---

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)