Swift SwiftUI 修改 List 背景颜色
Preview:
Code:
.listRowBackground(Color(.yellow))
.scrollContentBackground(.hidden)
.background(.linearGradient(colors: [.white, .accentColor], startPoint: .top, endPoint: .bottom))
.listRowBackground(Color(.yellow))
.scrollContentBackground(.hidden)
.background(.linearGradient(colors: [.white, .accentColor], startPoint: .top, endPoint: .bottom))