Skip to content

Instantly share code, notes, and snippets.

@SandeepAggarwal
Created November 20, 2021 08:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SandeepAggarwal/449dde53404d30d55c268d079e91ec2a to your computer and use it in GitHub Desktop.
Save SandeepAggarwal/449dde53404d30d55c268d079e91ec2a to your computer and use it in GitHub Desktop.
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
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment