GK

let cell = tableView.dequeueReusableCell(withIdentifier: "customCell", for: indexPath) as? CustomTableViewCell
cell?.commonInit(image: self.forecastsArray[indexPath.row].imageWeatherOfDay
,weekDay: self.forecastsArray[indexPath.row].dayOfWeek
,condition: self.forecastsArray[indexPath.row].conditionOfDay
,dayTemp: self.forecastsArray[indexPath.row].tempOfDay
,nightTemp: self.forecastsArray[indexPath.row].tempOfNight)
let theColor = UIColor.darkGray.withAlphaComponent(0.4)
let bgColorView = UIView()
bgColorView.backgroundColor = theColor
cell?.selectedBackgroundView = bgColorView
// viewWillAppear(true)
return cell!
}
func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
tableView.deselectRow(