When running the following code in iOS15, the color of a URL or email address within the contents uses the accent color instead of the foreground color. How can I override that?
Text("Send a message to [email protected] to request support")
.foregroundColor(.blue)

You can use Text(verbatim:) to render the string as-is, and not automatically create a link from the email.
Text(verbatim: "Send a message to [email protected] to request support")
.foregroundColor(.blue)
Result:

You can also set your own accent color, if you want.
Text("Send a message to [email protected] to request support")
.tint(.green)
Result:

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With