From 66d5adde7186dca828edc920ddd62beb7b3415c3 Mon Sep 17 00:00:00 2001 From: Justin Mazzocchi <2831158+jzzocc@users.noreply.github.com> Date: Thu, 28 Jan 2021 22:14:48 -0800 Subject: [PATCH] No explore tab when browsing --- View Controllers/MainNavigationViewController.swift | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/View Controllers/MainNavigationViewController.swift b/View Controllers/MainNavigationViewController.swift index 8adead5..c15c90b 100644 --- a/View Controllers/MainNavigationViewController.swift +++ b/View Controllers/MainNavigationViewController.swift @@ -61,13 +61,13 @@ private extension MainNavigationViewController { var controllers: [UIViewController] = [ TimelinesViewController( viewModel: viewModel, - rootViewModel: rootViewModel), - ExploreViewController( - viewModel: viewModel.exploreViewModel(), rootViewModel: rootViewModel) ] if viewModel.identityContext.identity.authenticated && !pending { + tabBar.isHidden = false + controllers.append(ExploreViewController(viewModel: viewModel.exploreViewModel(), + rootViewModel: rootViewModel)) controllers.append(NotificationsViewController(viewModel: viewModel, rootViewModel: rootViewModel)) let conversationsViewController = TableViewController( @@ -80,6 +80,8 @@ private extension MainNavigationViewController { controllers.append(conversationsViewController) setupNewStatusButton() + } else { + tabBar.isHidden = true } let secondaryNavigationButton = SecondaryNavigationButton(viewModel: viewModel, rootViewModel: rootViewModel)