[TableView] Changing the background color of UITableViewHeaderFooterView is not supported. Use the background view configuration instead.
let backgroundView = UIView(frame: headerView.bounds)
backgroundView.backgroundColor = UIColor.purple
headerView.backgroundView = backgroundView