-
Notifications
You must be signed in to change notification settings - Fork 45
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
Hyperlinks? #9
Comments
Hi @antonjazz , The unsupported hyperlink is really annoying, however, by far there's no easy way to put a hyperlinked text inline with other styled-text, the only way to concatenate text is using The reason Parma provides Anyway, thanks for your feedback. And if you have any ideas of how to solve this problem, please let me know! |
Thank you for the response, @dasautoooo! I wish I had a suggestion. Fingers crossed for a way in upcoming version of SwiftUI. best wishes! |
Hey @dasautoooo, I really like your library and its customizability! I’ve also tried MDText, but it has not the customizability that you have, however it has the linking working. Can I suggest you in the very nicest way possible to have a look at that project, maybe it’ll help you in implementing it in your library. Thank you so much for your work already! |
@Dennissimeau MDText can't generate a link inline, MarkdownUI do it perfectly. |
I get the necessity of returning Texts because these can be concatenated. But why don't links also have a |
#22 let you customize the link. |
Hey there. I posted yesterday a PR to support inline links. Please give it a check you you have some time. Maybe it's not best way but at least it works. Also, please share any further suggestion/improvement to the approach. |
You list hyperlinks under "Unsupported" rather than "Possibly Support in Future Versions", but I see the stub for the function
func link(textView: Text, destination: String?) -> Text
.Is there anything that can be done with it at this point? I can see how to use it to style the textView, but since the result is a
Text
view there's no way to add an.onTapGesture()
modifier in the function, is there?Thank you for this terrific package!
The text was updated successfully, but these errors were encountered: