diff --git a/Riot/Modules/SplitView/SplitViewCoordinator.swift b/Riot/Modules/SplitView/SplitViewCoordinator.swift index 1fd948dd0..479ebf702 100644 --- a/Riot/Modules/SplitView/SplitViewCoordinator.swift +++ b/Riot/Modules/SplitView/SplitViewCoordinator.swift @@ -351,4 +351,8 @@ extension SplitViewCoordinator: SplitViewMasterPresentableDelegate { detailNavigationRouter.push(detailPresentable, animated: true, popCompletion: popCompletion) } + + func splitViewMasterPresentableWantsToResetDetail(_ presentable: Presentable) { + self.resetDetailNavigationControllerWithPlaceholder(animated: false) + } } diff --git a/Riot/Modules/SplitView/SplitViewPresentable.swift b/Riot/Modules/SplitView/SplitViewPresentable.swift index 3521c76bd..7932a4815 100644 --- a/Riot/Modules/SplitView/SplitViewPresentable.swift +++ b/Riot/Modules/SplitView/SplitViewPresentable.swift @@ -26,6 +26,9 @@ protocol SplitViewMasterPresentableDelegate: AnyObject { /// Stack the detailPresentable on the existing split view detail stack func splitViewMasterPresentable(_ presentable: Presentable, wantsToStack detailPresentable: Presentable, popCompletion: (() -> Void)?) + + /// Reset detail stack with placeholder + func splitViewMasterPresentableWantsToResetDetail(_ presentable: Presentable) } /// `SplitViewMasterPresentableDelegate` default implementation