allowedDynamicRange(_:)
Returns a new view configured with the specified allowed dynamic range.
Declaration
nonisolated func allowedDynamicRange(_ range: Image.DynamicRange?) -> some View
Parameters
- range:
The requested dynamic range, or nil to restore the default allowed range.
Return Value
A new view.
Discussion
The following example enables HDR rendering within a view hierarchy:
MyView().allowedDynamicRange(.high)