SplitViewPresentable: Add possiblity to reset detail stack.

This commit is contained in:
SBiOSoftWhare 2021-10-20 08:57:19 +02:00
parent 61a1bf1aaf
commit bf063d076a
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