Skip to content

Commit

Permalink
Fix build pre iOS 13
Browse files Browse the repository at this point in the history
  • Loading branch information
ffried committed Mar 12, 2024
1 parent 5485b5e commit 289c825
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Tests/ColorCalculationsTests/ImageColorsCalculatorTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,10 @@ final class ImageColorsCalculatorTests: XCTestCase {
#if !canImport(CoreImage) || !canImport(UIKit)
try skipUnavailableAPI()
#else
guard #available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) else {
throw XCTSkip("MainActor not present")
}

final class NonBackingUIImage: UIImage {
override var ciImage: CIImage? { nil }
override var cgImage: CGImage? { nil }
Expand Down

0 comments on commit 289c825

Please sign in to comment.