From 3a9497cc7e4368dfcc5a125624a37a8a88557592 Mon Sep 17 00:00:00 2001 From: Hailey Date: Tue, 6 Feb 2024 19:13:28 -0800 Subject: [PATCH] use ios live text interaction in alt text modal and image viewer (#2752) --- .../lightbox/ImageViewing/components/ImageItem/ImageItem.ios.tsx | 1 + src/view/com/modals/AltImage.tsx | 1 + 2 files changed, 2 insertions(+) diff --git a/src/view/com/lightbox/ImageViewing/components/ImageItem/ImageItem.ios.tsx b/src/view/com/lightbox/ImageViewing/components/ImageItem/ImageItem.ios.tsx index 99a94166..cf4ba71d 100644 --- a/src/view/com/lightbox/ImageViewing/components/ImageItem/ImageItem.ios.tsx +++ b/src/view/com/lightbox/ImageViewing/components/ImageItem/ImageItem.ios.tsx @@ -144,6 +144,7 @@ const ImageItem = ({imageSrc, onTap, onZoom, onRequestClose}: Props) => { accessibilityLabel={imageSrc.alt} accessibilityHint="" onLoad={() => setLoaded(true)} + enableLiveTextInteraction={!scaled} /> diff --git a/src/view/com/modals/AltImage.tsx b/src/view/com/modals/AltImage.tsx index 7671c29c..17ce05cd 100644 --- a/src/view/com/modals/AltImage.tsx +++ b/src/view/com/modals/AltImage.tsx @@ -105,6 +105,7 @@ export function Component({image}: Props) { contentFit="contain" accessible={true} accessibilityIgnoresInvertColors + enableLiveTextInteraction />