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

Message links #468

Closed
borutlatecheckout opened this issue Apr 5, 2024 · 2 comments
Closed

Message links #468

borutlatecheckout opened this issue Apr 5, 2024 · 2 comments

Comments

@borutlatecheckout
Copy link

borutlatecheckout commented Apr 5, 2024

What are you trying to achieve?

I would like to handle links (urls) in messages similar to how UITextView works in UIKit. I have a custom implementation of the message view.

If possible, how can you achieve this currently?

I can use UITextView wrapper for swiftui currently, but it doesn't work properly with the current setup of the chat.
I've also noticed there is a LinkDetectionTextView available inside SDK, but is not publicly available for use.

What would be the better way?

To have a native support within the SDK or to open up access to LinkDetectionTextView.

GetStream Environment

GetStream Chat version: latest
GetStream Chat frameworks: StreamChat, StreamChatSwiftUI
iOS version: 17.x
Swift version: 5.10
Xcode version: 15x
Device: iPhone

Additional context

@martinmitrevski
Copy link
Contributor

Hi @borutlatecheckout,

We have exposed LinkDetectionTextView as public on our main branch, it's going to be available in our next release.

Best, Martin

@borutlatecheckout
Copy link
Author

Great 🙌 Thanks @martinmitrevski!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants