How do I change the foreground color of a SwiftUI Tab?
I have my code as follows:
/// Inside TabView
// Home Tab
Tab("", systemImage: "house.fill", value: .home) {
HomeScreen()
}.foregroundStyle(.red)
I get errors when I tried to add the foregroundStyle(.red).
I also tried using the label parameter and creating a label with the foregroundStyle(.red) modifier. Compiles but still no color changes.
Topic:
UI Frameworks
SubTopic:
SwiftUI