ColinEberhardt / VCTransitionsLibrary

A collection of iOS7 animation controllers and interaction controllers, providing flip, fold and all kinds of other transitions.
Other
4.55k stars 617 forks source link

Pan animation not panning across whole screen in landscape #34

Open twhitbeck opened 10 years ago

twhitbeck commented 10 years ago

In landscape the pan animation still only moves the portrait width of the screen. I'm using it to pan between viewcontrollers in a UITabBarController.

ColinEberhardt commented 10 years ago

Ah, good point, my test app doesn't use landscape. I'll look into this, although if you find a fix, I'm happy to receive a submission.

micnguyen commented 9 years ago

Hi,

I'm using the PanAnimationController but noticed the magic number of 320. Is this referring to the width of iPhone 2/3/4/5? Running my app with the library, the presented viewcontroller starts and ends abruptly at the 320px point. That would also explain why the OP is having problems with landscape mode.

It really should be taking into account the width of the device's screen.