mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-21 09:02:44 +02:00
SplitViewPresentable: Add possiblity to reset detail stack.
This commit is contained in:
@@ -351,4 +351,8 @@ extension SplitViewCoordinator: SplitViewMasterPresentableDelegate {
|
|||||||
|
|
||||||
detailNavigationRouter.push(detailPresentable, animated: true, popCompletion: popCompletion)
|
detailNavigationRouter.push(detailPresentable, animated: true, popCompletion: popCompletion)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func splitViewMasterPresentableWantsToResetDetail(_ presentable: Presentable) {
|
||||||
|
self.resetDetailNavigationControllerWithPlaceholder(animated: false)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -26,6 +26,9 @@ protocol SplitViewMasterPresentableDelegate: AnyObject {
|
|||||||
|
|
||||||
/// Stack the detailPresentable on the existing split view detail stack
|
/// Stack the detailPresentable on the existing split view detail stack
|
||||||
func splitViewMasterPresentable(_ presentable: Presentable, wantsToStack detailPresentable: Presentable, popCompletion: (() -> Void)?)
|
func splitViewMasterPresentable(_ presentable: Presentable, wantsToStack detailPresentable: Presentable, popCompletion: (() -> Void)?)
|
||||||
|
|
||||||
|
/// Reset detail stack with placeholder
|
||||||
|
func splitViewMasterPresentableWantsToResetDetail(_ presentable: Presentable)
|
||||||
}
|
}
|
||||||
|
|
||||||
/// `SplitViewMasterPresentableDelegate` default implementation
|
/// `SplitViewMasterPresentableDelegate` default implementation
|
||||||
|
|||||||
Reference in New Issue
Block a user