We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a0107a9 commit e28bf43Copy full SHA for e28bf43
Sources/AnyLanguageModel/Transcript.swift
@@ -456,7 +456,7 @@ extension Transcript.ImageSegment {
456
}
457
458
459
-#if canImport(UIKit)
+#if canImport(UIKit) || targetEnvironment(macCatalyst)
460
import UIKit
461
462
extension Transcript.ImageSegment {
@@ -486,9 +486,7 @@ extension Transcript.ImageSegment {
486
self.init(data: data, mimeType: mimeType)
487
488
489
-#endif
490
-
491
-#if canImport(AppKit)
+#elseif canImport(AppKit)
492
import AppKit
493
494
0 commit comments