Prechádzať zdrojové kódy

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

fix warning 'UIKit' was not imported
Wei Wang 2 rokov pred
rodič
commit
c68a3541dc
1 zmenil súbory, kde vykonal 2 pridanie a 0 odobranie
  1. 2 0
      Sources/Image/ImageProcessor.swift

+ 2 - 0
Sources/Image/ImageProcessor.swift

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