Update Riot/Modules/SplitView/SplitViewCoordinator.swift

Co-authored-by: Doug <6060466+pixlwave@users.noreply.github.com>
This commit is contained in:
SBiOSoftWhare
2021-10-08 11:46:53 +02:00
committed by GitHub
parent 95fc506936
commit 68a477e3d0
@@ -284,6 +284,7 @@ extension SplitViewCoordinator: UISplitViewControllerDelegate {
func splitViewController(_ splitViewController: UISplitViewController, collapseSecondary secondaryViewController: UIViewController, onto primaryViewController: UIViewController) -> Bool {
// If the secondary view is the placeholder screen do not merge the secondary into the primary.
// Note: In this case, the secondaryViewController will be automatically discarded.
if self.isPlaceholderShown(from: secondaryViewController) {
return true
}