optonaut / ActiveLabel.swift

UILabel drop-in replacement supporting Hashtags (#), Mentions (@) and URLs (http://) written in Swift
MIT License
4.47k stars 686 forks source link

Adding Accessibility support #62

Open ndbroadbent opened 8 years ago

ndbroadbent commented 8 years ago

I'm interested in making the Mention, Hashtag, and URL elements accessible. We need this for our automated test suite, which relies on accessibility labels. But it's also just a good thing to provide for people who need it.

I'm not 100% sure how to do it, but I'll try to copy what TTTAttributedLabel is doing.

polqf commented 7 years ago

Been waiting for a PR, closing due to inactivity

thijsnado commented 6 years ago

@polqf, instead of the TTTAttributedLabel approach, would you be interested in doing this via accessibility actions? I figure this could work as follows:

and obviously we would add methods for overriding the action names for all the ones listed above. I could probably work on this approach and try to get a PR for this if you think this would be a good approach.

rozeridilar commented 1 year ago

Hello, I added the accessibility support here: https://github.com/optonaut/ActiveLabel.swift/pull/424