mirror of
https://github.com/vector-im/element-ios.git
synced 2024-09-29 07:42:40 +00:00
SplitViewPresentable: Add possiblity to reset detail stack.
This commit is contained in:
parent
61a1bf1aaf
commit
bf063d076a
2 changed files with 7 additions and 0 deletions
|
@ -351,4 +351,8 @@ extension SplitViewCoordinator: SplitViewMasterPresentableDelegate {
|
|||
|
||||
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
|
||||
func splitViewMasterPresentable(_ presentable: Presentable, wantsToStack detailPresentable: Presentable, popCompletion: (() -> Void)?)
|
||||
|
||||
/// Reset detail stack with placeholder
|
||||
func splitViewMasterPresentableWantsToResetDetail(_ presentable: Presentable)
|
||||
}
|
||||
|
||||
/// `SplitViewMasterPresentableDelegate` default implementation
|
||||
|
|
Loading…
Reference in a new issue