File tree Expand file tree Collapse file tree 3 files changed +7
-0
lines changed Expand file tree Collapse file tree 3 files changed +7
-0
lines changed Original file line number Diff line number Diff line change 3232import Foundation
3333
3434#if canImport(CoreGraphics)
35+ import CoreGraphics
3536
3637@objc ( SVGImage)
3738public final class Image : NSObject {
Original file line number Diff line number Diff line change 2929// 3. This notice may not be removed or altered from any source distribution.
3030//
3131
32+ #if canImport(AppKit)
3233import AppKit
3334import CoreGraphics
3435
@@ -109,3 +110,5 @@ public extension Image {
109110 return bitmap. representation ( using: . jpeg, properties: [ NSBitmapImageRep . PropertyKey. compressionFactor: quality] )
110111 }
111112}
113+
114+ #endif
Original file line number Diff line number Diff line change 2929// 3. This notice may not be removed or altered from any source distribution.
3030//
3131
32+ #if canImport(UIKit)
3233import UIKit
3334
3435public extension UIImage {
@@ -68,3 +69,5 @@ public extension Image {
6869 return rasterize ( with: jpgSize) . jpegData ( compressionQuality: quality)
6970 }
7071}
72+
73+ #endif
You can’t perform that action at this time.
0 commit comments