Created
November 20, 2021 08:42
-
-
Save SandeepAggarwal/449dde53404d30d55c268d079e91ec2a to your computer and use it in GitHub Desktop.
Fixes UITableView footer color issue in iOS 15 using Xcode 13
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// 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