Drop attempt to fade in the supplementary interface
sometimes it just stayed hidden?
This commit is contained in:
parent
ac28c2ee4f
commit
5277ec191b
|
@ -72,7 +72,6 @@ extension MediaPreviewImageView {
|
|||
doubleTapGestureRecognizer.addTarget(self, action: #selector(MediaPreviewImageView.doubleTapGestureRecognizerHandler(_:)))
|
||||
imageView.addGestureRecognizer(doubleTapGestureRecognizer)
|
||||
if #available(iOS 16.0, *) {
|
||||
liveTextInteraction.isSupplementaryInterfaceHidden = true
|
||||
imageView.addInteraction(liveTextInteraction)
|
||||
}
|
||||
|
||||
|
@ -154,10 +153,6 @@ extension MediaPreviewImageView {
|
|||
await MainActor.run {
|
||||
self.liveTextInteraction.analysis = analysis
|
||||
self.liveTextInteraction.preferredInteractionTypes = .automatic
|
||||
if self.liveTextInteraction.isSupplementaryInterfaceHidden {
|
||||
self.liveTextInteraction.setSupplementaryInterfaceHidden(false, animated: true)
|
||||
}
|
||||
|
||||
}
|
||||
} catch {
|
||||
await MainActor.run {
|
||||
|
|
Loading…
Reference in New Issue