Наконец-то я нашел ответ на свою проблему:
init() {
UITableView.appearance().backgroundColor = UIColor(named: "CustomBackgroundColor")
UITableViewCell.appearance().backgroundColor = UIColor(named: "CustomBackgroundColor")
UITableView.appearance().tableFooterView = UIView()
}
var body: some View {
NavigationView {
List {
Text("Hello")
}
.navigationBarTitle("Test")
}
}