Skip to content

Commit

Permalink
Setting a valid transform value for a two visual state blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
kcharwood committed Jul 26, 2013
1 parent baa39f4 commit ac723a2
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 ac723a2

Please sign in to comment.