Skip to content

Commit

Permalink
fix issue 6
Browse files Browse the repository at this point in the history
  • Loading branch information
lkzhao committed Jan 7, 2016
1 parent 810e721 commit 3727df0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ElasticTransition/ElasticShapeLayer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public class ElasticShapeLayer: CAShapeLayer {

backgroundColor = UIColor.clearColor().CGColor
fillColor = UIColor.blackColor().CGColor
actions = ["path" : NSNull(), "position" : NSNull(), "bounds" : NSNull()]
actions = ["path" : NSNull(), "position" : NSNull(), "bounds" : NSNull(), "fillColor" : NSNull()]
}
override public init(layer: AnyObject) {
super.init(layer: layer)
Expand Down
3 changes: 2 additions & 1 deletion ElasticTransition/ElasticTransition.swift
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ public class ElasticTransition: EdgePanTransition, UIGestureRecognizerDelegate{
return
}

backView.layer.zPosition = 1
backView.layer.zPosition = 0
overlayView.layer.zPosition = 298
shadowView.layer.zPosition = 299
frontView.layer.zPosition = 300
Expand Down Expand Up @@ -472,6 +472,7 @@ public class ElasticTransition: EdgePanTransition, UIGestureRecognizerDelegate{
override func clean(finished:Bool){
animator.removeAllBehaviors()
animator = nil
frontView.layer.zPosition = 0
if navigation{
shadowView.removeFromSuperview()
overlayView.removeFromSuperview()
Expand Down

0 comments on commit 3727df0

Please sign in to comment.