You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 =)
The text was updated successfully, but these errors were encountered:
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 =)
The text was updated successfully, but these errors were encountered: