---
title: "previewValue(configuration:)"
framework: widgetkit
role: symbol
role_heading: Instance Method
path: "widgetkit/appintentcontrolvalueprovider/previewvalue(configuration:)"
---

# previewValue(configuration:)

A value to be shown while previewing the control in the add sheet.

## Declaration

```swift
func previewValue(configuration: Self.Configuration) -> Self.Value
```

## Parameters

- `configuration`: The intent containing user-editable parameters.

## Discussion

Discussion This value should be generated quickly and cheaply. Calculate more expensive and accurate values in currentValue(configuration:).
