From a0829d8bfa8367b22cd26fb94ebba274861160a1 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Tue, 24 May 2016 20:36:34 +0100 Subject: [PATCH] Speed up transition animations. 0.5s -> 0.25s --- Memories/Transitions/PhotoViewDismissTransition.swift | 2 +- Memories/Transitions/PhotoViewPresentTransition.swift | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Memories/Transitions/PhotoViewDismissTransition.swift b/Memories/Transitions/PhotoViewDismissTransition.swift index 4e042dc..eff7836 100644 --- a/Memories/Transitions/PhotoViewDismissTransition.swift +++ b/Memories/Transitions/PhotoViewDismissTransition.swift @@ -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 diff --git a/Memories/Transitions/PhotoViewPresentTransition.swift b/Memories/Transitions/PhotoViewPresentTransition.swift index ffdfc09..eac763b 100644 --- a/Memories/Transitions/PhotoViewPresentTransition.swift +++ b/Memories/Transitions/PhotoViewPresentTransition.swift @@ -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) {