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

# success(with:)

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

```
class func success(with resolvedString: INSpeakableString) -> Self
```

## Parameters

`resolvedString`

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 [`INSpeakableStringResolutionResult`](/documentation/Intents/INSpeakableStringResolutionResult) object.

## Discussion

Use this method to create a result object when you are able to use the provided string to handle the intent successfully.

---

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)