Declaration
compose().allowedDynamicRange(
range: SwiftUI.ImageDynamicRange | null
)func allowedDynamicRange(_ range: Image.DynamicRange?) -> ImageParameters
range*SwiftUI.ImageDynamicRange | nullthe requested dynamic range, or nil to restore the default allowed range.
Return value
a new image.
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
More in Image modifiers.
- antialiasedSpecifies whether SwiftUI applies antialiasing when rendering the image. allow antialiasing. Pass true to allow antialising, false otherwise.
- interpolationSpecifies the current level of quality for rendering an image that requires interpolation.
- renderingModeIndicates whether SwiftUI renders an image as-is, or by using a different mode.
- resizableSets the mode by which SwiftUI resizes an image to fit its space.
- symbolColorRenderingModeSets the color rendering mode of the image.
- symbolRenderingModeSets the rendering mode for symbol images within this view.
- symbolVariableValueModeSets the variable value mode mode for symbol images within this view.