From 72f4da6bc4c4ec9f37c7f6da83d10d157799f850 Mon Sep 17 00:00:00 2001 From: Riley Testut Date: Mon, 25 Mar 2019 13:00:09 -0700 Subject: [PATCH] Hides SyncResultViewController Done button when not presented modally --- Delta/Syncing/SyncResultViewController.swift | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Delta/Syncing/SyncResultViewController.swift b/Delta/Syncing/SyncResultViewController.swift index b64d9d5..37baff8 100644 --- a/Delta/Syncing/SyncResultViewController.swift +++ b/Delta/Syncing/SyncResultViewController.swift @@ -83,6 +83,11 @@ class SyncResultViewController: UITableViewController super.viewDidLoad() self.tableView.dataSource = self.dataSource + + if let navigationController = self.navigationController, navigationController.viewControllers.count != 1 + { + self.navigationItem.rightBarButtonItem = nil + } } override func prepare(for segue: UIStoryboardSegue, sender: Any?)