---
title: "success(with:)"
framework: intents
role: symbol
role_heading: Type Method
path: "intents/indoubleresolutionresult/success(with:)"
---

# success(with:)

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

## Declaration

```swift
class func success(with resolvedValue: Double) -> 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

Return Value A new INDoubleResolutionResult object.

## Discussion

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.

## See Also

### Creating a Resolution Result Object

- [confirmationRequired(with:)](intents/indoubleresolutionresult/confirmationrequired(with:).md)
