Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Access UITextViewDelegate method shouldInteractWithURL #22

Open
richard-ash opened this issue Nov 15, 2021 · 0 comments
Open

Access UITextViewDelegate method shouldInteractWithURL #22

richard-ash opened this issue Nov 15, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@richard-ash
Copy link

I'm looking to interact with UITextViewDelegate method func textView(_ textView: UITextView, shouldInteractWith URL: URL, in characterRange: NSRange, interaction: UITextItemInteraction) -> Bool. Specifically say there's highlighted text such as a mention or a hashtag as part of the attributed string. If the user taps that text we'd want to route them to a page with the associated information.

Is this possible? Or am I missing an alternative way to implement this behavior?

And awesome job with this framework! Love the simplicity and safety of the API's it's been fun to try it out over the last couple weeks : )

@niw niw added the enhancement New feature or request label Feb 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants