I\'m trying to change the background color of UITableViewHeaderFooterView. Although the view is appearing, the background color remains the default color. I\'m getting a log
Put this code in initializing of your UITableViewHeaderFooterView subclass:
let bgView = UIView() bgView.backgroundColor = UIColor.clear backgroundView = bgView backgroundColor = UIColor.clear contentView.backgroundColor = UIColor.clear