From ea3bbcb49ec9f8bb7429d56421b7cd5e76b7376a Mon Sep 17 00:00:00 2001 From: Yannick Spreen Date: Tue, 25 May 2021 19:54:02 +0200 Subject: [PATCH] Add missing delegate. (#59) --- DGCAWallet/ViewControllers/List.swift | 1 + DGCAWallet/ViewControllers/Settings.swift | 3 +++ 2 files changed, 4 insertions(+) diff --git a/DGCAWallet/ViewControllers/List.swift b/DGCAWallet/ViewControllers/List.swift index 503f07d..9bd0381 100644 --- a/DGCAWallet/ViewControllers/List.swift +++ b/DGCAWallet/ViewControllers/List.swift @@ -62,6 +62,7 @@ class ListVC: UIViewController { let viewer = settingsVC as? SettingsVC else { return } + viewer.childDismissedDelegate = self showFloatingPanel(for: viewer) } diff --git a/DGCAWallet/ViewControllers/Settings.swift b/DGCAWallet/ViewControllers/Settings.swift index 3ca2d1f..1effb7d 100644 --- a/DGCAWallet/ViewControllers/Settings.swift +++ b/DGCAWallet/ViewControllers/Settings.swift @@ -32,6 +32,8 @@ import SwiftDGC class SettingsVC: UINavigationController { + weak var childDismissedDelegate: CertViewerDelegate? + override func viewDidLoad() { super.viewDidLoad() @@ -41,6 +43,7 @@ class SettingsVC: UINavigationController { override func viewDidDisappear(_ animated: Bool) { super.viewDidDisappear(animated) + childDismissedDelegate?.childDismissed(false) } }