if HomeController is not the root controller, for example it's the 2nd view controller of the navigation controller.
The "Open" button sits at UINavigationItem.rightBarButtonItem, and the button could be used as open and hide menu function. After hiding the menu controller and clicking the back button to return to the first view controller, the menu controller will still display.When re-enter to the home controller, it could also show when segue from the first controller. As menu controller still sits at -300 position.
If we try to remove menuController when hide and add it when open, it seems the animation is not smoothly when hiding.
How to solve the problem? Thanks.