Permalink
Browse files

Removed animation when applying shadow view to the slider.

Seems to cause an unfixable crash.
Fixes #221.
  • Loading branch information...
1 parent c892c57 commit ef7f48853d7f1fcb2753847095d415d5ea1260ab @Inferis Inferis committed Dec 25, 2012
Showing with 1 addition and 7 deletions.
  1. +1 −1 VERSION
  2. +0 −6 ViewDeck/IIViewDeckController.m
View
@@ -1 +1 @@
-2.2.1
+2.2.2
@@ -2868,12 +2868,6 @@ - (void)applyShadowToSlidingViewAnimated:(BOOL)animated {
}
else {
UIBezierPath* newShadowPath = [UIBezierPath bezierPathWithRect:shadowedView.bounds];
- CABasicAnimation* anim = [CABasicAnimation animationWithKeyPath:@"shadowPath"];
- anim.fromValue = (__bridge id)shadowedView.layer.shadowPath;
- anim.toValue = newShadowPath;
- anim.duration = MIN(self.closeSlideAnimationDuration, self.openSlideAnimationDuration);
- [shadowedView.layer addAnimation:anim forKey:@"animateShadowPath"];
-
shadowedView.layer.masksToBounds = NO;
shadowedView.layer.shadowRadius = 10;
shadowedView.layer.shadowOpacity = 0.5;

0 comments on commit ef7f488

Please sign in to comment.