一部cellだけのheight指定する

func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat {
    if 条件 {
        return 高さ
    } else {
        return UITableView.automaticDimension
    }
}