From 8a9a750e35c21c24e173d51acc8117ff0acc8474 Mon Sep 17 00:00:00 2001 From: kean Date: Wed, 19 Jun 2024 07:20:15 -0400 Subject: [PATCH] Fix complilation on earlier Xcode versions --- Sources/NukeExtensions/ImageViewExtensions.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Sources/NukeExtensions/ImageViewExtensions.swift b/Sources/NukeExtensions/ImageViewExtensions.swift index 2a8d24a0..5a68eee5 100644 --- a/Sources/NukeExtensions/ImageViewExtensions.swift +++ b/Sources/NukeExtensions/ImageViewExtensions.swift @@ -413,9 +413,11 @@ extension ImageViewController { transitionView.frame = imageView.frame transitionView.tintColor = imageView.tintColor transitionView.tintAdjustmentMode = imageView.tintAdjustmentMode +#if swift(>5.9) if #available(iOS 17.0, tvOS 17.0, *) { transitionView.preferredImageDynamicRange = imageView.preferredImageDynamicRange } +#endif transitionView.preferredSymbolConfiguration = imageView.preferredSymbolConfiguration transitionView.isHidden = imageView.isHidden transitionView.clipsToBounds = imageView.clipsToBounds