Skip to content

Commit 76bff1c

Browse files
authored
Merge pull request #408 from duguyihou/407-bug-crashes-on-iphone-x-on-ios-16x
fix(iOS): import VisionKit when device supports it
2 parents 6586cc2 + e10b810 commit 76bff1c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

ios/TurboImageView.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import Nuke
22
import NukeUI
33
import SwiftSVG
4-
#if !os(tvOS)
4+
#if !os(tvOS) && canImport(VisionKit)
55
import VisionKit
66
#endif
77
import Gifu
@@ -358,7 +358,7 @@ fileprivate extension TurboImageView {
358358

359359
lazyImageView.onCompletion = { result in
360360
self.onCompletionHandler(with: result)
361-
#if !os(tvOS)
361+
#if !os(tvOS) && canImport(VisionKit)
362362
if self.enableLiveTextInteraction {
363363
self.handleLiveTextInteraction()
364364
}

0 commit comments

Comments
 (0)