preferredImageDynamicRange is not marked as being available only for iOS 17 and above.

open var isAnimating: Bool { get }

/// The preferred treatment to use for HDR images. By default the image view will defer to the value from its traitCollection.
open var preferredImageDynamicRange: UIImage.DynamicRange

/// The resolved treatment to use for HDR images.
open var imageDynamicRange: UIImage.DynamicRange { get }

This attribute is not marked as being applicable only in iOS 17+ versions. When viewing the UIImageView code in Xcode, the @available(iOS 17.0, *) annotation was not added, which resulted in successful compilation but caused a crash on iOS 16 devices.

Our engineering teams need to investigate this issue, as resolution may involve changes to Apple's software. Please file a bug report, include a small Xcode project and some directions that can be used to reproduce the problem, and post the Feedback number here once you do. If you post the Feedback number here I'll check the status next time I do a sweep of forums posts where I've suggested bug reports.

Bug Reporting: How and Why? has tips on creating your bug report.

Xcode 16.4

This should be resolved using Xcode 26 and the iOS 26 SDK. Could you please try again using the latest SDKs? You can still build apps for iOS 16 devices using the latest SDK (with the appropriate availability checks, of course).

preferredImageDynamicRange is not marked as being available only for iOS 17 and above.
 
 
Q