Hi,
I have trouble changing the color of the text of Link in SwiftUI. I tried with this code:
Link("https://www.mylink.com/", destination: URL(string: "https://www.mylink.com/")!)
.foregroundColor(Color.green)
and this code:
HStack(spacing: 0) {
Link("https://www.mylink.com/", destination: URL(string: "https://www.mylink.com/")!)
}
.foregroundColor(Color.green)
The link keeps getting the accent color.
EDIT: I want to add that it used to work and I think the issue came with a beta of Xcode 26. I think that was around the beta 4 or beta 5.
Is it a change of the APIs or a bug?