ntfy
ntfy copied to clipboard
iOS: Make links clickable
I investigated this for half an hour or so, and while it is pretty simple to just evaluate the entire payload as Markdown, I don't want to do that, because that would be inconsistent with the Android app. Also, I want links to be highlighted regardless of whether someone adds [..](..)
around it or not.
This seems trickier, and I gave up after 30min.
Some links:
https://stackoverflow.com/questions/57744392/how-to-make-hyperlinks-in-swiftui
https://www.hackingwithswift.com/example-code/system/how-to-make-tappable-links-in-nsattributedstring
https://swiftuirecipes.com/blog/hyperlinks-in-swiftui-text
https://www.raywenderlich.com/29501177-attributedstring-tutorial-for-swift-getting-started
Even just making notification text selectable/copiable would be a good start. At least you could then paste into the browser.
Hello, can confirm links are not clickable on my iPhone 12 Pro Max, iOS 14.4.1. Would be a really nice feature to have. Thanks.
I created a PR for this issue: https://github.com/binwiederhier/ntfy-ios/pull/14. @binwiederhier Can you check it?