Skip to content

Commit

Permalink
Merge pull request #341 from hyouuu/master
Browse files Browse the repository at this point in the history
Check against macCatalyst for ImageAnalyzer as it doesn't compile
  • Loading branch information
JanGorman authored Dec 16, 2022
2 parents c3e3753 + 4011e26 commit 3527d8d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Agrume/AgrumeCell.swift
Original file line number Diff line number Diff line change
Expand Up @@ -492,6 +492,7 @@ extension AgrumeCell: UIScrollViewDelegate {

@available(iOS 16, *)
private func analyzeImage(_ image: UIImage) {
#if !targetEnvironment(macCatalyst)
guard ImageAnalyzer.isSupported else {
return
}
Expand All @@ -510,5 +511,6 @@ extension AgrumeCell: UIScrollViewDelegate {
print(error.localizedDescription)
}
}
#endif
}
}

0 comments on commit 3527d8d

Please sign in to comment.