Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Animate sidebars to different view widths #115

Open
simonsmiley64 opened this issue Jul 27, 2017 · 1 comment
Open

Animate sidebars to different view widths #115

simonsmiley64 opened this issue Jul 27, 2017 · 1 comment

Comments

@simonsmiley64
Copy link

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

@pjameson
Copy link

Hi Simon,

I have a similar requirement and am experiencing the same problem. Did you ever find a resolution?

Thanks!

Pete

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants