Skip to content

Commit 1f676db

Browse files
authored
Add conditional compilation for tvOS in live text handling
Add conditional compilation for tvOS in live text handling. without this tvos app doesn't compile. Signed-off-by: Ketan <32693813+ketanPRO@users.noreply.github.com>
1 parent b66a4c4 commit 1f676db

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)