Skip to content

Commit 1d11374

Browse files
committed
update
1 parent ee9f837 commit 1d11374

File tree

4 files changed

+3
-2
lines changed

4 files changed

+3
-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: [.macOS(.v12), .iOS(.v15), .watchOS(.v8)],
8+
platforms: [.macOS(.v12), .iOS(.v15), .watchOS(.v8), .tvOS(.v15)],
99
products: [
1010
// Products define the executables and libraries a package produces, and make them visible to other packages.
1111
.library(

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ OpenAIAsyncImage(prompt: $imageText, size: .dpi1024){ state in
5959
| tpl | Custom view builder tpl |
6060
| loader | Custom loader if you need something specific|
6161

62+
![OpenAI AsyncImage SwiftUI](https://github.com/The-Igor/openai-async-image-swiftui/blob/main/image/appletv.png)
6263

6364
## Documentation(API)
6465
- You need to have Xcode 13 installed in order to have access to Documentation Compiler (DocC)

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) || os(watchOS)
80+
#if os(iOS) || os(watchOS) || os(tvOS)
8181
/// Base64 encoder for iOS
8282
/// - Parameter output: OpenAI response type
8383
/// - Returns: UIImage

image/appletv.png

1.34 MB
Loading

0 commit comments

Comments
 (0)