From 4b0f896f646272b2a75c98e0f1e4382a834c627f Mon Sep 17 00:00:00 2001 From: Justin Mazzocchi <2831158+jzzocc@users.noreply.github.com> Date: Fri, 4 Sep 2020 10:27:25 -0700 Subject: [PATCH] Use show instead of pushViewController --- View Controllers/StatusListViewController.swift | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/View Controllers/StatusListViewController.swift b/View Controllers/StatusListViewController.swift index 397e2e0..919443e 100644 --- a/View Controllers/StatusListViewController.swift +++ b/View Controllers/StatusListViewController.swift @@ -128,9 +128,7 @@ class StatusListViewController: UITableViewController { override func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) { guard let id = dataSource.itemIdentifier(for: indexPath) else { return } - navigationController?.pushViewController( - StatusListViewController(viewModel: viewModel.contextViewModel(id: id)), - animated: true) + show(StatusListViewController(viewModel: viewModel.contextViewModel(id: id)), sender: self) } override func viewDidLayoutSubviews() {