Skip to content

Commit a73f7d0

Browse files
authored
Merge pull request #316 from orff/master
Add visionOS support for forImage in Library
2 parents d048bf4 + 8b895e5 commit a73f7d0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Source/Shared/Library/TransformerFactory.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ public class TransformerFactory {
99
return Transformer<Data>(toData: toData, fromData: fromData)
1010
}
1111

12-
#if os(iOS) || os(tvOS) || os(macOS)
12+
#if os(iOS) || os(tvOS) || os(macOS) || os(visionOS)
1313
public static func forImage() -> Transformer<Image> {
1414
let toData: (Image) throws -> Data = { image in
1515
return try image.cache_toData().unwrapOrThrow(error: StorageError.transformerFail)

Source/Shared/Library/Types.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#if os(iOS) || os(tvOS)
1+
#if os(iOS) || os(tvOS) || os(visionOS)
22
import UIKit
33
public typealias Image = UIImage
44
#elseif os(watchOS)

0 commit comments

Comments
 (0)