We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d048bf4 + 8b895e5 commit a73f7d0Copy full SHA for a73f7d0
Source/Shared/Library/TransformerFactory.swift
@@ -9,7 +9,7 @@ public class TransformerFactory {
9
return Transformer<Data>(toData: toData, fromData: fromData)
10
}
11
12
- #if os(iOS) || os(tvOS) || os(macOS)
+ #if os(iOS) || os(tvOS) || os(macOS) || os(visionOS)
13
public static func forImage() -> Transformer<Image> {
14
let toData: (Image) throws -> Data = { image in
15
return try image.cache_toData().unwrapOrThrow(error: StorageError.transformerFail)
Source/Shared/Library/Types.swift
@@ -1,4 +1,4 @@
1
-#if os(iOS) || os(tvOS)
+#if os(iOS) || os(tvOS) || os(visionOS)
2
import UIKit
3
public typealias Image = UIImage
4
#elseif os(watchOS)
0 commit comments