SplitViewPresentable: Add possiblity to reset detail stack.

This commit is contained in:
SBiOSoftWhare
2021-10-20 08:57:19 +02:00
parent d700f44689
commit 43d4c4e082
2 changed files with 7 additions and 0 deletions

View File

@@ -351,4 +351,8 @@ extension SplitViewCoordinator: SplitViewMasterPresentableDelegate {
detailNavigationRouter.push(detailPresentable, animated: true, popCompletion: popCompletion)
}
func splitViewMasterPresentableWantsToResetDetail(_ presentable: Presentable) {
self.resetDetailNavigationControllerWithPlaceholder(animated: false)
}
}

View File

@@ -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