Fix delegate assignment. Issue #1322
This commit is contained in:
parent
d808716534
commit
6d407a0f3a
|
@ -139,6 +139,8 @@ private extension AddContainerViewController {
|
||||||
}
|
}
|
||||||
|
|
||||||
func displayContentController(_ controller: AddContainerViewControllerChild) {
|
func displayContentController(_ controller: AddContainerViewControllerChild) {
|
||||||
|
controller.delegate = self
|
||||||
|
|
||||||
if let currentViewController = currentViewController {
|
if let currentViewController = currentViewController {
|
||||||
|
|
||||||
let transition = CATransition()
|
let transition = CATransition()
|
||||||
|
@ -163,8 +165,6 @@ private extension AddContainerViewController {
|
||||||
}
|
}
|
||||||
|
|
||||||
currentViewController = controller
|
currentViewController = controller
|
||||||
currentViewController?.delegate = self
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue