You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here is the Podfile being used. I used PureLayout in addition to TTTAttributedLabel.
Podfile
# Uncomment the next line to define a global platform for your project# platform :ios, '9.0'target'AttributedLabelLinkBug'do# Comment the next line if you don't want to use dynamic frameworksuse_frameworks!pod'TTTAttributedLabel'pod'PureLayout'target'AttributedLabelLinkBugTests'doinherit!:search_paths# Pods for testingendtarget'AttributedLabelLinkBugUITests'do# Pods for testingendend
Notice how the links are clickable when VO is not enabled.
The technical issue seems to be in the boundingRectForCharacterRange method. boundingRectForGlyphRange does not return the correct CGRect for the second link.
The text was updated successfully, but these errors were encountered:
iPhone 12 mini
iOS 15.2.1
Steps to repro:
TTTAttributedLabel
with anNSAttributedString
.Expected: Both links are accessible via VoiceOver.
Actual: Only the first link is accessible via VoiceOver.
To test you can create a single view app with a Storyboard and replace the
ViewController
code with the following:Code snippet
Here is the Podfile being used. I used
PureLayout
in addition to TTTAttributedLabel.Podfile
Here is a video of the issue:
https://user-images.githubusercontent.com/7491869/151636127-948eec72-c3a4-4452-b698-c1815e6c6bec.mp4
Notice how the links are clickable when VO is not enabled.
The technical issue seems to be in the
boundingRectForCharacterRange
method.boundingRectForGlyphRange
does not return the correctCGRect
for the second link.The text was updated successfully, but these errors were encountered: