chore: set Home page navigation item hidden on iPad

This commit is contained in:
CMK 2021-10-29 18:14:51 +08:00
parent e8e655ff5c
commit bb79e57412
1 changed files with 4 additions and 0 deletions

View File

@ -31,6 +31,10 @@ final class ContentSplitViewController: UIViewController, NeedsDependency {
@Published var currentSupplementaryTab: MainTabBarController.Tab = .home @Published var currentSupplementaryTab: MainTabBarController.Tab = .home
private(set) lazy var mainTabBarController: MainTabBarController = { private(set) lazy var mainTabBarController: MainTabBarController = {
let mainTabBarController = MainTabBarController(context: context, coordinator: coordinator) let mainTabBarController = MainTabBarController(context: context, coordinator: coordinator)
if let homeTimelineViewController = mainTabBarController.viewController(of: HomeTimelineViewController.self) {
homeTimelineViewController.viewModel.displayComposeBarButtonItem.value = false
homeTimelineViewController.viewModel.displaySettingBarButtonItem.value = false
}
return mainTabBarController return mainTabBarController
}() }()