In my iOS app, i have SwiftUI Lists. Before iOS 14, putting this in AppDelegate worked to change the background color of the cells:
UITableViewCell.appearance().backgroundColor = .black
After iOS 14, this no longer changes the color and it has reverted to the default white.
This does not work either:
UITableViewCell.appearance().backgroundConfiguration?.backgroundColor = .black
Is there another way to change the color of a UITableViewCell in SwiftUI in iOS 14?
