Skip to content

Commit

Permalink
Speed up transition animations. 0.5s -> 0.25s
Browse files Browse the repository at this point in the history
  • Loading branch information
mluisbrown committed May 24, 2016
1 parent d584424 commit a0829d8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Memories/Transitions/PhotoViewDismissTransition.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class PhotoViewDismissTransition: NSObject, UIViewControllerAnimatedTransitionin

let destImageView: UIImageView
let sourceImageView: UIImageView
let duration = NSTimeInterval(0.5)
let duration = NSTimeInterval(0.25)

init(destImageView: UIImageView, sourceImageView: UIImageView) {
self.destImageView = destImageView
Expand Down
2 changes: 1 addition & 1 deletion Memories/Transitions/PhotoViewPresentTransition.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import AVFoundation

class PhotoViewPresentTransition: NSObject, UIViewControllerAnimatedTransitioning {
let sourceImageView : UIImageView
let duration = NSTimeInterval(0.5)
let duration = NSTimeInterval(0.25)
let buttonOffset = CGFloat(50)

init(sourceImageView: UIImageView) {
Expand Down

0 comments on commit a0829d8

Please sign in to comment.