chore: set Home page navigation item hidden on iPad
This commit is contained in:
parent
e8e655ff5c
commit
bb79e57412
|
@ -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
|
||||||
}()
|
}()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue