From ba0d179de5993426d9250ae2f7bb1d049a840000 Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Sun, 15 Aug 2021 10:37:04 -0400 Subject: [PATCH] Fix AccountSwtichingContainerViewController not sending sceneDidEnterBackground to children --- .../Main/AccountSwitchingContainerViewController.swift | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Tusker/Screens/Main/AccountSwitchingContainerViewController.swift b/Tusker/Screens/Main/AccountSwitchingContainerViewController.swift index 4c7a30cd..c30a0837 100644 --- a/Tusker/Screens/Main/AccountSwitchingContainerViewController.swift +++ b/Tusker/Screens/Main/AccountSwitchingContainerViewController.swift @@ -89,3 +89,11 @@ extension AccountSwitchingContainerViewController: TuskerRootViewController { root.performSearch(query: query) } } + +extension AccountSwitchingContainerViewController: BackgroundableViewController { + func sceneDidEnterBackground() { + if let backgroundable = root as? BackgroundableViewController { + backgroundable.sceneDidEnterBackground() + } + } +}