Skip to content

Commit 206e5ca

Browse files
authored
Merge pull request #434 from ketanPRO/main
Add conditional compilation for tvOS in live text handling
2 parents b66a4c4 + 1f676db commit 206e5ca

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

ios/TurboImageView.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -443,11 +443,12 @@ fileprivate extension TurboImageView {
443443
// MARK: - live text
444444
fileprivate extension TurboImageView {
445445
func handleLiveTextInteraction() {
446+
#if !os(tvOS)
446447
guard #available(iOS 16.0, *), ImageAnalyzer.isSupported, let image = lazyImageView.imageView.image else { return }
447448

448449
let interaction = ImageAnalysisInteraction()
449450
lazyImageView.imageView.addInteraction(interaction)
450-
#if !os(tvOS)
451+
451452
liveTextTask?.cancel()
452453
liveTextTask = Task { [weak self] in
453454
guard let self else { return }

0 commit comments

Comments
 (0)