I have a problem that I couldn't find any appropriate solution. I have a tableView with custom cells which holds a textView inside. also I have a blank grey footer for the section. whenever I click on the textView and the keyboard pops up the footer in that section goes up and hides behind the textView field.
I don't know how to make that footer sticky so it won't move when the keyboard pops. if anyone have a solution it will be great! thank you!
    func tableView(_ tableView: UITableView, viewForFooterInSection section: Int) -> UIView? {
    if section == 0 {
        let footerView = UIView()
        footerView.backgroundColor = .red
            return footerView
    }else {
        return UIView()
    }
}
func tableView(_ tableView: UITableView, heightForFooterInSection section: Int) -> CGFloat {
    return 8
}