I\'m trying to recreate an UI I built with UIKit in SwiftUI but I\'m running into some minor issues.
I want the change the color of the List here, but n
List
I do not know what is the connection but if you wrap the list with Form it is working.
Form
Form { List(viewModel.currencyList, id: \.self) { currency in ItemView(item: currency) } .listRowBackground(Color("Primary")) .background(Color("Primary")) }