Skip to content

Commit

Permalink
Fix issue twostraws#234 where the SplitViewController could show diff…
Browse files Browse the repository at this point in the history
…erent controller than the root one
  • Loading branch information
Carrione committed Oct 25, 2024
1 parent 3ea8c77 commit 52e53db
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Unwrap/Protocols/Awarding.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 52e53db

Please sign in to comment.