A bit late to the discussion. Anyway, just ran into the same issue and it seems that, at least in my case, .foregroundStyle works if you explicitly specify Color.green instead of just .green.
The other solution is to use the deprecated .foregroundColor until Apple removes it.
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: