I had the same problem with both .foregroundStyle and .font.
My workaround was:
AxisValueLabel {
Text(String(format: "%.2f", value.as(Double.self) ?? 0))
.foregroundColor(.red)
}
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: