Skip to content

Commit e28bf43

Browse files
Fixed build errors under macCatalyst. (#96)
1 parent a0107a9 commit e28bf43

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Sources/AnyLanguageModel/Transcript.swift

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,7 @@ extension Transcript.ImageSegment {
456456
}
457457
}
458458

459-
#if canImport(UIKit)
459+
#if canImport(UIKit) || targetEnvironment(macCatalyst)
460460
import UIKit
461461

462462
extension Transcript.ImageSegment {
@@ -486,9 +486,7 @@ extension Transcript.ImageSegment {
486486
self.init(data: data, mimeType: mimeType)
487487
}
488488
}
489-
#endif
490-
491-
#if canImport(AppKit)
489+
#elseif canImport(AppKit)
492490
import AppKit
493491

494492
extension Transcript.ImageSegment {

0 commit comments

Comments
 (0)