---
title: "allowedDynamicRange(_:)"
framework: swiftui
role: symbol
role_heading: Instance Method
path: "swiftui/image/alloweddynamicrange(_:)"
---

# allowedDynamicRange(_:)

Returns a new image configured with the specified allowed dynamic range.

## Declaration

```swift
func allowedDynamicRange(_ range: Image.DynamicRange?) -> Image
```

## Parameters

- `range`: The requested dynamic range, or nil to restore the default allowed range.

## Return Value

Return Value A new image.

## Discussion

Discussion The following example enables HDR rendering for a specific image view, assuming that the image has an HDR (ITU-R 2100) color space and the output device supports it: Image("hdr-asset").allowedDynamicRange(.high)

## See Also

### Specifying dynamic range

- [allowedDynamicRange](swiftui/environmentvalues/alloweddynamicrange.md)
- [Image.DynamicRange](swiftui/image/dynamicrange.md)
