我使用的customColor
具有明暗模式的定义
这是List
:
public var body: some View {
List {
ForEach(Array(1...5), id: \.self) {
Text(String($0))
.listRowBackground(Color(.customColor))
.background(Color(.customColor))
}
}
}
我的问题是分隔符后面的背景颜色仍然是黑色,在黑暗模式下看起来真的很糟糕
有人知道如何解决此问题吗?