<!--
{
  "availability" : [
    "iOS: 17.0.0 -",
    "iPadOS: 17.0.0 -",
    "macCatalyst: 17.0.0 -",
    "macOS: 14.0.0 -",
    "tvOS: 17.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/Image/DynamicRange",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI5ImageV12DynamicRangeV"
  },
  "title" : "Image.DynamicRange"
}
-->

# Image.DynamicRange

The range of brightness that an image is allowed to draw.

```
struct DynamicRange
```

## Overview

A high dynamic range image stores highlights brighter than white. Pass a
value of this type to [`allowedDynamicRange(_:)`](/documentation/SwiftUI/Image/allowedDynamicRange(_:)) to say how much
of that extra brightness reaches the display:

```
Image("sunset")
    .allowedDynamicRange(.constrainedHigh)
```

Use [`high`](/documentation/SwiftUI/Image/DynamicRange/high) when the image is the subject of the
screen and you want it at full brightness. Prefer
[`constrainedHigh`](/documentation/SwiftUI/Image/DynamicRange/constrainedHigh) when the image appears next to an
ordinary interface, because an unrestricted image can make the content
around it look dim. [`standard`](/documentation/SwiftUI/Image/DynamicRange/standard) holds the image to
the same range as the rest of the interface.

## Topics

### Getting dynamic range values

[`static let standard: Image.DynamicRange`](/documentation/SwiftUI/Image/DynamicRange/standard)

Restrict the image content dynamic range to the standard range.

[`static let high: Image.DynamicRange`](/documentation/SwiftUI/Image/DynamicRange/high)

Allow image content to use an unrestricted extended range.

[`static let constrainedHigh: Image.DynamicRange`](/documentation/SwiftUI/Image/DynamicRange/constrainedHigh)

Allow image content to use some extended range. This is
appropriate for placing HDR content next to SDR content.

## Relationships

### Conforms To

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Equatable`](/documentation/Swift/Equatable)

[`Hashable`](/documentation/Swift/Hashable)

[`Sendable`](/documentation/Swift/Sendable)

---

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)