【发布时间】:2020-07-27 19:49:49
【问题描述】:
我想将背景白色更改为 SwiftUI 中列表的另一种颜色
List(listOfItems) { item in
Group {
HStack {
item.iconImage.padding()
Text(item.text).fontWeight(.regular).foregroundColor(Color("smalltext")).font(.system(size: 25))
Spacer()
Button(action: {
}) {
Image("back")
}
}.padding().background(Color("bg"))
}.listRowBackground(Color("bg"))
}.background(Color("bg"))
【问题讨论】:
标签: swiftui-list swiftui