I am using SwiftUI and would like to have something similar to .dataDetectorTypes in a UITextView to dynamically display content and allow links or phone numbers or addresses to be clickable in a SwiftUI Text or TextEditor.
As this will be for a chat app the content is dynamic and so just using .onTap won't work. Ideally I would like to use something like textView.dataDetectorTypes = .all in either a Text or TextEditor in SwiftUI but it seems that is not available.
Currently I'm using a UITextView Representable but having all sorts of issues there with dynamic height adjustment and scroll performance so hoping to find a SwiftUI way of doing this without UIViewRepresentable.