【发布时间】:2019-11-28 07:03:07
【问题描述】:
我无法在 SwiftUI 中更改 TabBar 颜色。我尝试使用 TabbedView、图像/文本和堆栈。没有什么对我有用。
使用.foregroundColor 不起作用。
TabbedView(selection: $selection){
TextView()
.tag(0)
.tabItemLabel(
VStack {
Image("Calendar")
.foregroundColor(.red)
Text("Appointments")
.foregroundColor(.red)
}
).foregroundColor(.red)
}.foregroundColor(.red)
【问题讨论】:
标签: swift view colors tabbar swiftui