InteractiveSideMenu
InteractiveSideMenu copied to clipboard
Memory leak
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.
open class MenuViewController: UIViewController {
public weak var menuContainerViewController: MenuContainerViewController?
weak var navigationMenuTransitionDelegate: MenuTransitioningDelegate?
@objc func handleTap(recognizer _: UIGestureRecognizer) {
menuContainerViewController?.hideSideMenu()
}
}
Am I right? Thank you =)
Same thing I faced
Need Answer from owner