jondanao / TheSidebarController

A container view controller that implements different popular sidebar view controllers like Facebook, Airbnb, Flipboard, etc.
Other
360 stars 52 forks source link

Performance issue on real devices #15

Open ngoccuong291 opened 9 years ago

ngoccuong291 commented 9 years ago

To whom it may concern,

I tried the library and it worked great. However, when the animation happens on a real device (iPhone 5), it is pretty sluggish. When it's compared to what AirBnb animation, the AirBnb animation looks way smoother. I'm not sure what trick they did to make it smooth but I just wonder if we turn the front view into an image before the animation, would it be faster?

Regards

jondanao commented 9 years ago

Hi @ngoccuong291,

That would probably be a great implementation - take a snapshot using the context, hide the viewcontroller and animate the image. Would it be faster? I honestly do not know. You may try it, if it works well, maybe you can send a pull request.

Thanks!

Jon

bhavinchitroda commented 9 years ago

Same issue. When I saw effect for the first time, I was quite impressed with it. As it's the prime effect in the app, it attracts everyone but at the same time, the slower animation makes it worst experience for the user.