mirror of
https://github.com/metabolist/metatext.git
synced 2024-11-05 16:29:33 +00:00
No explore tab when browsing
This commit is contained in:
parent
aee0b3e66d
commit
66d5adde71
1 changed files with 5 additions and 3 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue