mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 16:10:20 +00:00
Hide the tab bar whilst we're working on it and add some tests.
This commit is contained in:
@@ -15,6 +15,7 @@ import SwiftUI
|
||||
let title: String
|
||||
let icon: KeyPath<CompoundIcons, Image>
|
||||
let selectedIcon: KeyPath<CompoundIcons, Image>
|
||||
var dismissalCallback: (() -> Void)?
|
||||
}
|
||||
|
||||
// MARK: Tabs
|
||||
@@ -56,7 +57,10 @@ import SwiftUI
|
||||
transaction.disablesAnimations = !animated
|
||||
|
||||
withTransaction(transaction) {
|
||||
tabModules = tabs.map { TabModule(module: .init($0.coordinator), title: $0.title, icon: $0.icon, selectedIcon: $0.selectedIcon) }
|
||||
tabModules = tabs.map { TabModule(module: .init($0.coordinator, dismissalCallback: $0.dismissalCallback),
|
||||
title: $0.title,
|
||||
icon: $0.icon,
|
||||
selectedIcon: $0.selectedIcon) }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -199,6 +203,7 @@ private struct NavigationTabCoordinatorView: View {
|
||||
}
|
||||
.tag(module.id)
|
||||
.id(module.id)
|
||||
.toolbar(.hidden, for: .tabBar)
|
||||
}
|
||||
}
|
||||
.sheet(item: $navigationTabCoordinator.sheetModule) { module in
|
||||
|
||||
@@ -81,8 +81,8 @@ class UserSessionFlowCoordinator: FlowCoordinatorProtocol {
|
||||
isNewLogin: isNewLogin)
|
||||
|
||||
navigationTabCoordinator.setTabs([
|
||||
.init(coordinator: chatsSplitCoordinator, title: L10n.screenHomeTabChats, icon: \.chat, selectedIcon: \.chatSolid),
|
||||
.init(coordinator: BlankFormCoordinator(), title: L10n.screenHomeTabSpaces, icon: \.space, selectedIcon: \.spaceSolid)
|
||||
.init(coordinator: chatsSplitCoordinator, title: L10n.screenHomeTabChats, icon: \.chat, selectedIcon: \.chatSolid)
|
||||
// .init(coordinator: BlankFormCoordinator(), title: L10n.screenHomeTabSpaces, icon: \.space, selectedIcon: \.spaceSolid)
|
||||
])
|
||||
|
||||
setupObservers()
|
||||
|
||||
Reference in New Issue
Block a user