AKSwiftSlideMenu
AKSwiftSlideMenu copied to clipboard
Bug related to changing to same view controller
Hi,
Thanks for the work! But, I noticed a bug. To replicate:
- Click menu button
- Select the same view controller option with the one you have now
- Click again to menu button and it doesn't work.
- Click again now it works but view is messed up.
Problem is with sender.tag use. I fixed it by checking iif (view.subviews.last?.restorationIdentifier == "SlideMenuView")
insted of checking for sender's tag. That seemed cleaner and more generic to me and also fixed the problem.
Also I made slidemenuvc a property of BaseViewController so that it doesn't initialize every time.
@bymafmaf send a pull request