<!--
{
  "availability" : [
    "iOS: 18.0.0 -",
    "iPadOS: 18.0.0 -",
    "macCatalyst: -",
    "macOS: 26.0.0 -",
    "watchOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "WidgetKit",
  "identifier" : "/documentation/WidgetKit/AppIntentControlValueProvider/previewValue(configuration:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "WidgetKit"
    ],
    "preciseIdentifier" : "s:9WidgetKit29AppIntentControlValueProviderP07previewF013configuration0F0Qz13ConfigurationQz_tF"
  },
  "title" : "previewValue(configuration:)"
}
-->

# previewValue(configuration:)

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

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

## Parameters

`configuration`

The intent containing user-editable parameters.

## Discussion

This value should be generated quickly and cheaply. Calculate more
expensive and accurate values in [`currentValue(configuration:)`](/documentation/WidgetKit/AppIntentControlValueProvider/currentValue(configuration:)).

---

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)