Skip to content

Commit

Permalink
clean warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Urtaq committed Mar 17, 2017
1 parent c930f41 commit 2ccc6bb
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -94,13 +94,13 @@ public class URMoveTransitioningAnimator: NSObject, UIViewControllerAnimatedTran
return self.copyView(imageView: view as! UIImageView)
}

var view = view.snapshotView(afterScreenUpdates: false)!
let view = view.snapshotView(afterScreenUpdates: false)!

return view
}

func copyView(imageView: UIImageView) -> UIImageView {
var view = UIImageView(image: imageView.image)
let view = UIImageView(image: imageView.image)
view.backgroundColor = imageView.backgroundColor
view.contentMode = imageView.contentMode
view.frame = imageView.frame
Expand Down Expand Up @@ -274,7 +274,7 @@ public class URMoveTransitioningAnimator: NSObject, UIViewControllerAnimatedTran

}

if let movedView = self.movingView {
if let _ = self.movingView {
let animationGroup = CAAnimationGroup()
animationGroup.animations = [self.moveAnimation, self.scaleAnimation]
animationGroup.duration = self.transitionDuration(using: self.transitionContext)
Expand Down

0 comments on commit 2ccc6bb

Please sign in to comment.