Skip to content

Commit 9f0aba0

Browse files
committed
update
1 parent 293d7ab commit 9f0aba0

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Package.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import PackageDescription
55

66
let package = Package(
77
name: "openai-async-image-swiftui",
8-
platforms: [.iOS(.v15), .macOS(.v12)],
8+
platforms: [.macOS(.v12), .iOS(.v15), .watchOS(.v8)],
99
products: [
1010
// Products define the executables and libraries a package produces, and make them visible to other packages.
1111
.library(

Sources/openai-async-image-swiftui/viewModel/OpenAIDefaultLoader.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public final class OpenAIDefaultLoader : IOpenAILoader{
7777
return Data(base64Encoded: base64)
7878
}
7979

80-
#if os(iOS)
80+
#if os(iOS) || os(watchOS)
8181
/// Base64 encoder for iOS
8282
/// - Parameter output: OpenAI response type
8383
/// - Returns: UIImage

0 commit comments

Comments
 (0)