瀏覽代碼

Support project catalyst

WildCat 6 年之前
父節點
當前提交
90eb8ab690

+ 1 - 1
Sources/General/Deprecated.swift

@@ -24,7 +24,7 @@
 //  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 //  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 //  THE SOFTWARE.
 //  THE SOFTWARE.
 
 
-#if canImport(AppKit)
+#if canImport(AppKit) && !targetEnvironment(UIKitForMac)
 import AppKit
 import AppKit
 #elseif canImport(UIKit)
 #elseif canImport(UIKit)
 import UIKit
 import UIKit

+ 1 - 1
Sources/Image/ImageDrawing.swift

@@ -26,7 +26,7 @@
 
 
 import Accelerate
 import Accelerate
 
 
-#if canImport(AppKit)
+#if canImport(AppKit) && !targetEnvironment(UIKitForMac)
 import AppKit
 import AppKit
 #endif
 #endif
 #if canImport(UIKit)
 #if canImport(UIKit)

+ 1 - 1
Sources/Image/ImageProcessor.swift

@@ -27,7 +27,7 @@
 import Foundation
 import Foundation
 import CoreGraphics
 import CoreGraphics
 
 
-#if canImport(AppKit)
+#if canImport(AppKit) && !targetEnvironment(UIKitForMac)
 import AppKit
 import AppKit
 #endif
 #endif
 
 

+ 1 - 1
Sources/Utility/ExtensionHelpers.swift

@@ -32,7 +32,7 @@ extension Float {
     }
     }
 }
 }
 
 
-#if canImport(AppKit)
+#if canImport(AppKit) && !targetEnvironment(UIKitForMac)
 import AppKit
 import AppKit
 extension NSBezierPath {
 extension NSBezierPath {
     convenience init(roundedRect rect: NSRect, topLeftRadius: CGFloat, topRightRadius: CGFloat,
     convenience init(roundedRect rect: NSRect, topLeftRadius: CGFloat, topRightRadius: CGFloat,

+ 1 - 1
Sources/Views/Indicator.swift

@@ -24,7 +24,7 @@
 //  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 //  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 //  THE SOFTWARE.
 //  THE SOFTWARE.
 
 
-#if canImport(AppKit)
+#if canImport(AppKit) && !targetEnvironment(UIKitForMac)
 import AppKit
 import AppKit
 public typealias IndicatorView = NSView
 public typealias IndicatorView = NSView
 #else
 #else