From 52e53db72954ba4cac2a38c46387082b1f6b6f43 Mon Sep 17 00:00:00 2001 From: Carrione Date: Fri, 25 Oct 2024 21:50:12 +0200 Subject: [PATCH] Fix issue #234 where the SplitViewController could show different controller than the root one --- Unwrap/Protocols/Awarding.swift | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Unwrap/Protocols/Awarding.swift b/Unwrap/Protocols/Awarding.swift index 836e2998..e806f8e4 100644 --- a/Unwrap/Protocols/Awarding.swift +++ b/Unwrap/Protocols/Awarding.swift @@ -33,6 +33,9 @@ extension Awarding { self.returnToStart() } } else { + // Make sure to show the root view controller in the master view controller. + splitViewController.popToRootViewController() + // Show the awards screen alongside the master view controller. splitViewController.showDetailViewController(viewController, sender: self) }