Skip to content

Commit

Permalink
Merge pull request #63 from mutualmobile/transform_fix
Browse files Browse the repository at this point in the history
Setting a valid transform value for a two visual state blocks
  • Loading branch information
kcharwood committed Aug 2, 2013
2 parents baa39f4 + ac723a2 commit 08f720a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions MMDrawerController/MMDrawerVisualState.m
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ +(MMDrawerControllerDrawerVisualStateBlock)slideAndScaleVisualStateBlock{

CGFloat maxDistance = 50;
CGFloat distance = maxDistance * percentVisible;
CATransform3D translateTransform;
CATransform3D translateTransform = CATransform3DIdentity;
UIViewController * sideDrawerViewController;
if(drawerSide == MMDrawerSideLeft) {
sideDrawerViewController = drawerController.leftDrawerViewController;
Expand Down Expand Up @@ -117,7 +117,7 @@ +(MMDrawerControllerDrawerVisualStateBlock)parallaxVisualStateBlockWithParallaxF
MMDrawerControllerDrawerVisualStateBlock visualStateBlock =
^(MMDrawerController * drawerController, MMDrawerSide drawerSide, CGFloat percentVisible){
NSParameterAssert(parallaxFactor >= 1.0);
CATransform3D transform;
CATransform3D transform = CATransform3DIdentity;
UIViewController * sideDrawerViewController;
if(drawerSide == MMDrawerSideLeft) {
sideDrawerViewController = drawerController.leftDrawerViewController;
Expand Down

0 comments on commit 08f720a

Please sign in to comment.