Given the following code:
import SwiftUI
struct ContentView: View {
var body: some View {
VStack {
Text("Hello, world!")
.padding()
Text("https://lvmh.com")
.foregroundColor(.black)
}
}
}
struct ContentView_Previews: PreviewProvider {
static var previews: some View {
ContentView()
}
}
I'm getting the following result:
Desired outcome
- Make link color to be the same as the "Hello world" text color
- Do not treat the text in the link as a tappable link, treat it just as a regular text.
Follow-up question
I'd like to apply the same behavior to the email strings, e.g.:
Text("r.topchii@corp.lvmh.com")
Should not be highlighted.


