Skip to content

Instantly share code, notes, and snippets.

@SandeepAggarwal
Created November 20, 2021 08:42

Revisions

  1. SandeepAggarwal created this gist Nov 20, 2021.
    9 changes: 9 additions & 0 deletions SubclassedUITableViewController.swift
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    /// 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
    }