From bf48603deb3ebc2c9b96bfe3669f00acab2ae9a0 Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Wed, 12 Jun 2019 22:44:23 -0700 Subject: [PATCH] Temporarily disable LargeImageViewController animation --- .../UIViewController+Delegates.swift | 39 ++++++++++--------- .../ProfileHeaderTableViewCell.xib | 2 +- Tusker/Views/Status/StatusTableViewCell.xib | 19 ++++----- 3 files changed, 30 insertions(+), 30 deletions(-) diff --git a/Tusker/Extensions/UIViewController+Delegates.swift b/Tusker/Extensions/UIViewController+Delegates.swift index 0c6d5fb6..4861038f 100644 --- a/Tusker/Extensions/UIViewController+Delegates.swift +++ b/Tusker/Extensions/UIViewController+Delegates.swift @@ -10,29 +10,32 @@ import UIKit extension UIViewController: UIViewControllerTransitioningDelegate { public func animationController(forPresented presented: UIViewController, presenting: UIViewController, source: UIViewController) -> UIViewControllerAnimatedTransitioning? { - if presented is LargeImageViewController { - return LargeImageExpandAnimationController() - } else { - return nil - } + return nil +// if presented is LargeImageViewController { +// return LargeImageExpandAnimationController() +// } else { +// return nil +// } } public func animationController(forDismissed dismissed: UIViewController) -> UIViewControllerAnimatedTransitioning? { - if let dismissed = dismissed as? LargeImageViewController { - return LargeImageShrinkAnimationController(interactionController: dismissed.dismissInteractionController) - } else { - return nil - } + return nil +// if let dismissed = dismissed as? LargeImageViewController { +// return LargeImageShrinkAnimationController(interactionController: dismissed.dismissInteractionController) +// } else { +// return nil +// } } public func interactionControllerForDismissal(using animator: UIViewControllerAnimatedTransitioning) -> UIViewControllerInteractiveTransitioning? { - if let animator = animator as? LargeImageShrinkAnimationController, - let interactionController = animator.interactionController, - interactionController.inProgress { - - return interactionController - } else { - return nil - } + return nil +// if let animator = animator as? LargeImageShrinkAnimationController, +// let interactionController = animator.interactionController, +// interactionController.inProgress { +// +// return interactionController +// } else { +// return nil +// } } } diff --git a/Tusker/Views/Profile Header/ProfileHeaderTableViewCell.xib b/Tusker/Views/Profile Header/ProfileHeaderTableViewCell.xib index 502b3c55..b933f834 100644 --- a/Tusker/Views/Profile Header/ProfileHeaderTableViewCell.xib +++ b/Tusker/Views/Profile Header/ProfileHeaderTableViewCell.xib @@ -58,7 +58,7 @@ - + @@ -60,7 +60,7 @@ - + - - -