Now I push MenuContainerViewController into a navigation stack and when I pop to a root view controller the controller is not deallocating. I suppose a reason is that MenuViewController has the strong reference to its container.
My solution is a weak reference to the container.
open class MenuViewController: UIViewController {
public weak var menuContainerViewController: MenuContainerViewController?
weak var navigationMenuTransitionDelegate: MenuTransitioningDelegate?
@objc func handleTap(recognizer _: UIGestureRecognizer) {
menuContainerViewController?.hideSideMenu()
}
}
Hi guys! Thanks for your library.
Now I push MenuContainerViewController into a navigation stack and when I pop to a root view controller the controller is not deallocating. I suppose a reason is that MenuViewController has the strong reference to its container.
My solution is a weak reference to the container.
Am I right? Thank you =)