Closed Fabezi closed 1 year ago
Basically, if you do not provide stringRepresentation for STUImageTextAttachment(stringRepresentation: nil), STUTextFrameAccessibilityElement.mm:304 string range will be null and throws out of bounds
NSString* const language = [label attribute:UIAccessibilitySpeechAttributeLanguage atIndex:0 longestEffectiveRange:&effectiveRange inRange:NSRange{0, stringRange.length}];
-> Thread 1: Exception: "NSRLEArray objectAtIndex:effectiveRange:: Out of bounds"
Thanks for the report and repro sample! Should be fixed now.
Attached example project:
accessibility-crash.zip