diff options
| author | Andrej Mihajlov <and@mullvad.net> | 2021-04-08 12:17:59 +0200 |
|---|---|---|
| committer | Andrej Mihajlov <and@mullvad.net> | 2021-05-05 10:56:34 +0200 |
| commit | c5d47160e1d03cef3f59197b8264eb393711d3f4 (patch) | |
| tree | 4ce73f1180d68c157794b3ab497bc718e8f5d7b7 | |
| parent | ba947da093dc21f3e0dbb35f47ee27bbfdf7c530 (diff) | |
| download | mullvadvpn-c5d47160e1d03cef3f59197b8264eb393711d3f4.tar.xz mullvadvpn-c5d47160e1d03cef3f59197b8264eb393711d3f4.zip | |
RootContainer: add missing completion handlers
| -rw-r--r-- | ios/MullvadVPN/RootContainerViewController.swift | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ios/MullvadVPN/RootContainerViewController.swift b/ios/MullvadVPN/RootContainerViewController.swift index 9a3fa411fa..3057266315 100644 --- a/ios/MullvadVPN/RootContainerViewController.swift +++ b/ios/MullvadVPN/RootContainerViewController.swift @@ -169,16 +169,16 @@ class RootContainerViewController: UIViewController { ) } - func pushViewController(_ viewController: UIViewController, animated: Bool) { + func pushViewController(_ viewController: UIViewController, animated: Bool, completion: CompletionHandler? = nil) { var newViewControllers = viewControllers.filter({ $0 != viewController }) newViewControllers.append(viewController) - setViewControllersInternal(newViewControllers, isUnwinding: false, animated: animated) + setViewControllersInternal(newViewControllers, isUnwinding: false, animated: animated, completion: completion) } - func popToRootViewController(animated: Bool) { + func popToRootViewController(animated: Bool, completion: CompletionHandler? = nil) { if let rootController = self.viewControllers.first, self.viewControllers.count > 1 { - setViewControllersInternal([rootController], isUnwinding: true, animated: animated) + setViewControllersInternal([rootController], isUnwinding: true, animated: animated, completion: completion) } } |
