Skip to content

Commit

Permalink
Add missing delegate. (#59)
Browse files Browse the repository at this point in the history
  • Loading branch information
yspreen authored May 25, 2021
1 parent 8ad0419 commit ea3bbcb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions DGCAWallet/ViewControllers/List.swift
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ class ListVC: UIViewController {
let viewer = settingsVC as? SettingsVC else {
return
}
viewer.childDismissedDelegate = self
showFloatingPanel(for: viewer)
}

Expand Down
3 changes: 3 additions & 0 deletions DGCAWallet/ViewControllers/Settings.swift
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ import SwiftDGC

class SettingsVC: UINavigationController {

weak var childDismissedDelegate: CertViewerDelegate?

override func viewDidLoad() {
super.viewDidLoad()

Expand All @@ -41,6 +43,7 @@ class SettingsVC: UINavigationController {
override func viewDidDisappear(_ animated: Bool) {
super.viewDidDisappear(animated)

childDismissedDelegate?.childDismissed(false)
}
}

Expand Down

0 comments on commit ea3bbcb

Please sign in to comment.