//  Copyright (c) 2014 Steve Brambilla. All rights reserved.

#if canImport(UIKit)
import UIKit
#elseif canImport(AppKit)
import AppKit
#else
#error("Requires either UIKit or AppKit")
#endif

public protocol ExpressionProtocol {
	func update(priority: Priority) -> Self
	func evaluateAll() -> [Constraint]
}

public protocol DistinctExpressionProtocol: ExpressionProtocol {
	func evaluateDistinct() -> Constraint
}

//  Copyright (c) 2014 Steve Brambilla. All rights reserved.

#if os(macOS) && !targetEnvironment(macCatalyst)
import AppKit
#else
import UIKit
#endif

public protocol ExpressionProtocol {
	func update(priority: Priority) -> Self
	func evaluateAll() -> [Constraint]
}

public protocol DistinctExpressionProtocol: ExpressionProtocol {
	func evaluateDistinct() -> Constraint
}

--- 
+++ 
@@ -1,9 +1,11 @@
 //  Copyright (c) 2014 Steve Brambilla. All rights reserved.
 
-#if os(macOS) && !targetEnvironment(macCatalyst)
+#if canImport(UIKit)
+import UIKit
+#elseif canImport(AppKit)
 import AppKit
 #else
-import UIKit
+#error("Requires either UIKit or AppKit")
 #endif
 
 public protocol ExpressionProtocol {
Fix missed targetEnvironment -> canImport change
