LGSideMenuController
LGSideMenuController copied to clipboard
Animate sidebars to different view widths
Hello,
I want my users to be able to show different levels of information on the side bar. This means if they click a button the sidebar will open or close to a different level. Currently I am experimenting with pressing it manually:
@IBAction func state1ButtonPressed() {
sideMenuController?.leftViewWidth = 4.0
}
@IBAction func state2ButtonPressed() {
sideMenuController?.leftViewWidth = 44.0
}
But this jolts the menu in and out. Is there a way of animating the side menus to different widths?
I have tried using an animateWithDuration block but this doesn't seem to fix it.
Any advice would be very appreciated,
Simon
Hi Simon,
I have a similar requirement and am experiencing the same problem. Did you ever find a resolution?
Thanks!
Pete