Sfoglia il codice sorgente

Update import for warnings

onevcat 2 anni fa
parent
commit
7e89cf95df
1 ha cambiato i file con 5 aggiunte e 1 eliminazioni
  1. 5 1
      Sources/Networking/ImageModifier.swift

+ 5 - 1
Sources/Networking/ImageModifier.swift

@@ -24,7 +24,11 @@
 //  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 //  THE SOFTWARE.
 
-import Foundation
+#if os(macOS)
+import AppKit
+#else
+import UIKit
+#endif
 
 /// An `ImageModifier` can be used to change properties on an image between cache serialization and the actual use of
 /// the image. The `modify(_:)` method will be called after the image retrieved from its source and before it returned