From 10b005fec28a5eec2aa638bdda1b9c41f5c5fee7 Mon Sep 17 00:00:00 2001 From: Matt Bruce Date: Thu, 21 Sep 2023 10:21:51 -0500 Subject: [PATCH] ONEAPP-4682 - Text Link Caret - Accessibility iOS Signed-off-by: Matt Bruce --- VDS/Components/Label/Attributes/ImageLabelAttribute.swift | 3 +-- VDS/SupportingFiles/ReleaseNotes.txt | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/VDS/Components/Label/Attributes/ImageLabelAttribute.swift b/VDS/Components/Label/Attributes/ImageLabelAttribute.swift index 2596b316..645c0013 100644 --- a/VDS/Components/Label/Attributes/ImageLabelAttribute.swift +++ b/VDS/Components/Label/Attributes/ImageLabelAttribute.swift @@ -59,9 +59,8 @@ public struct ImageLabelAttribute: AttachmentLabelAttributeModel { let attachment = NSTextAttachment() if let accessibleText { attachment.accessibilityLabel = accessibleText - attachment.isAccessibilityElement = true } else { - attachment.isAccessibilityElement = false + attachment.accessibilityLabel = " " } attachment.image = tintColor != nil ? image.withTintColor(tintColor!) : image if let frame { diff --git a/VDS/SupportingFiles/ReleaseNotes.txt b/VDS/SupportingFiles/ReleaseNotes.txt index fa341e8d..7531c46f 100644 --- a/VDS/SupportingFiles/ReleaseNotes.txt +++ b/VDS/SupportingFiles/ReleaseNotes.txt @@ -1,6 +1,7 @@ 1.0.44 ======= - ONEAPP-5109 - Typography/Label - Accessibility iOS +- ONEAPP-4682 - Text Link Caret - Accessibility iOS 1.0.43 =======