Skip to content

Instantly share code, notes, and snippets.

View SandeepAggarwal's full-sized avatar
🏠
Working from home

Sandeep Aggarwal SandeepAggarwal

🏠
Working from home
View GitHub Profile
@SandeepAggarwal
SandeepAggarwal / SubclassedUITableViewController.swift
Created November 20, 2021 08:42
Fixes UITableView footer color issue in iOS 15 using Xcode 13
/// There is a footer color issue in the case of a plain styled (not grouped style) tableView.
/// Before iOS 15, the footer was colored but now it was transparent
func tableView(_ tableView: UITableView, viewForFooterInSection section: Int) -> UIView? {
let footer = UIView()
footer.isUserInteractionEnabled = false
footer.backgroundColor = UIColor(red: 229/255, green: 229/255, blue: 229/255, alpha: 1)
return footer
}