From 4011e265dd95a2bde62d812f65239ad7290b446f Mon Sep 17 00:00:00 2001 From: hyouuu Date: Mon, 5 Dec 2022 11:58:36 -1000 Subject: [PATCH] Check against macCatalyst for ImageAnalyzer as it doesn't compile --- Agrume/AgrumeCell.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Agrume/AgrumeCell.swift b/Agrume/AgrumeCell.swift index fcd12d4..a18c125 100644 --- a/Agrume/AgrumeCell.swift +++ b/Agrume/AgrumeCell.swift @@ -492,6 +492,7 @@ extension AgrumeCell: UIScrollViewDelegate { @available(iOS 16, *) private func analyzeImage(_ image: UIImage) { + #if !targetEnvironment(macCatalyst) guard ImageAnalyzer.isSupported else { return } @@ -510,5 +511,6 @@ extension AgrumeCell: UIScrollViewDelegate { print(error.localizedDescription) } } + #endif } }