Browse Source

Merge pull request #2063 from zunda-pixel/fix-warnig-swift6

fix warning 'UIKit' was not imported
Wei Wang 2 years ago
parent
commit
c68a3541dc
1 changed files with 2 additions and 0 deletions
  1. 2 0
      Sources/Image/ImageProcessor.swift

+ 2 - 0
Sources/Image/ImageProcessor.swift

@@ -29,6 +29,8 @@ import CoreGraphics
 
 #if canImport(AppKit) && !targetEnvironment(macCatalyst)
 import AppKit
+#else
+import UIKit
 #endif
 
 /// Represents an item which could be processed by an `ImageProcessor`.