Hi, I ran the following code on iOS and MacOS and found a discrepancy.
struct ContentView: View {
var body: some View {
VStack {
Text(text)
}
}
var text: AttributedString {
let markdown = "[This is a link](https://queue.community)"
var attributedString: AttributedString = try! AttributedString(markdown: markdown)
let fullStringRange = attributedString.startIndex..<attributedString.endIndex
attributedString[fullStringRange].foregroundColor = .red
return attributedString
}
}
When I ran the code targetting iOS, it correctly overrides the link color to red, but when I target MacOS, it stays the default color of blue. I need the ability to override foregroundcColor on MacOS. (See Images)
Please explain how I can do this: it is core functionality.