Skip to content

Commit 824c790

Browse files
committed
Fix bridging accessibility value
1 parent 9da450d commit 824c790

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

HyperLabel/HyperLabelPresenter.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,8 @@ public final class HyperLabelPresenter<TextView: UIView> where TextView: TextCon
189189
return nil
190190
}
191191
guard let string = container.attributedText?.string else { return nil }
192-
let value = String(string[range])
192+
let bridgedString = string + ""
193+
let value = String(bridgedString[range])
193194
return LinkAccessibilityElement(accessibilityContainer: container,
194195
range: range,
195196
value: value,

0 commit comments

Comments
 (0)