Here is my code that sets the tint color of the image view in the tableview cell.
func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
let cell = tableView.dequeueReusableCell(withIdentifier: "typeCell")
var content = cell?.defaultContentConfiguration()
// Configure content.
content?.image = UIImage(imageLiteralResourceName:typesArray![indexPath.row])
content?.imageProperties.maximumSize = CGSize(width: 28.0, height: 28.0)
content?.text = typesArray![indexPath.row]
content?.imageProperties.tintColor = UIColor(named:typesColorsArray![indexPath.row])
cell?.contentConfiguration = content
return cell!
}