From db106c2fb50de4c8817b09fec6b43c15957a27ba Mon Sep 17 00:00:00 2001 From: "Pfeil, Scott Robert" Date: Fri, 23 Jul 2021 15:33:57 -0400 Subject: [PATCH] weak managers --- MVMCoreUI/BaseControllers/ViewController.swift | 2 +- MVMCoreUI/Containers/NavigationController.swift | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/MVMCoreUI/BaseControllers/ViewController.swift b/MVMCoreUI/BaseControllers/ViewController.swift index 52d63f84..2566deba 100644 --- a/MVMCoreUI/BaseControllers/ViewController.swift +++ b/MVMCoreUI/BaseControllers/ViewController.swift @@ -23,7 +23,7 @@ import UIKit } /// Set if this page is containted in a manager. - public var manager: (UIViewController & MVMCoreViewManagerProtocol)? + public weak var manager: (UIViewController & MVMCoreViewManagerProtocol)? /// A temporary iVar backer for delegateObject() until we change the protocol public lazy var delegateObjectIVar: MVMCoreUIDelegateObject = { diff --git a/MVMCoreUI/Containers/NavigationController.swift b/MVMCoreUI/Containers/NavigationController.swift index eb378b08..0e16b577 100644 --- a/MVMCoreUI/Containers/NavigationController.swift +++ b/MVMCoreUI/Containers/NavigationController.swift @@ -10,7 +10,7 @@ import UIKit @objcMembers open class NavigationController: UINavigationController, MVMCoreViewManagerViewControllerProtocol { public var separatorView: Line? - public var manager: (UIViewController & MVMCoreViewManagerProtocol)? + public weak var manager: (UIViewController & MVMCoreViewManagerProtocol)? /// Getter for the main navigation controller public static func navigationController() -> Self? {