From 6d407a0f3ab0614924ff59325b0108dbbebb8f39 Mon Sep 17 00:00:00 2001 From: Maurice Parker Date: Wed, 20 Nov 2019 06:30:43 -0600 Subject: [PATCH] Fix delegate assignment. Issue #1322 --- iOS/Add/AddContainerViewController.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/iOS/Add/AddContainerViewController.swift b/iOS/Add/AddContainerViewController.swift index 38e3683d2..0c521910b 100644 --- a/iOS/Add/AddContainerViewController.swift +++ b/iOS/Add/AddContainerViewController.swift @@ -139,6 +139,8 @@ private extension AddContainerViewController { } func displayContentController(_ controller: AddContainerViewControllerChild) { + controller.delegate = self + if let currentViewController = currentViewController { let transition = CATransition() @@ -163,8 +165,6 @@ private extension AddContainerViewController { } currentViewController = controller - currentViewController?.delegate = self - } }