diff --git a/NADA-iOS-forRelease/Sources/ViewControllers/CardCreation/CardCreationPreviewViewController.swift b/NADA-iOS-forRelease/Sources/ViewControllers/CardCreation/CardCreationPreviewViewController.swift index 2bec54a8..9cc31c6e 100644 --- a/NADA-iOS-forRelease/Sources/ViewControllers/CardCreation/CardCreationPreviewViewController.swift +++ b/NADA-iOS-forRelease/Sources/ViewControllers/CardCreation/CardCreationPreviewViewController.swift @@ -164,11 +164,11 @@ extension CardCreationPreviewViewController { isFront = true } if swipeGesture.direction == .right { - UIView.transition(with: cardView, duration: 1, options: .transitionFlipFromLeft, animations: nil) { _ in + UIView.transition(with: cardView, duration: 0.5, options: .transitionFlipFromLeft, animations: nil) { _ in self.cardView.subviews[0].removeFromSuperview() } } else { - UIView.transition(with: cardView, duration: 1, options: .transitionFlipFromRight, animations: nil) { _ in + UIView.transition(with: cardView, duration: 0.5, options: .transitionFlipFromRight, animations: nil) { _ in self.cardView.subviews[0].removeFromSuperview() } } diff --git a/NADA-iOS-forRelease/Sources/ViewControllers/CardDetail/CardDetailViewController.swift b/NADA-iOS-forRelease/Sources/ViewControllers/CardDetail/CardDetailViewController.swift index 6957f370..7d0c30fa 100644 --- a/NADA-iOS-forRelease/Sources/ViewControllers/CardDetail/CardDetailViewController.swift +++ b/NADA-iOS-forRelease/Sources/ViewControllers/CardDetail/CardDetailViewController.swift @@ -151,11 +151,11 @@ extension CardDetailViewController { isFront = true } if swipeGesture.direction == .right { - UIView.transition(with: cardView, duration: 1, options: .transitionFlipFromLeft, animations: nil) { _ in + UIView.transition(with: cardView, duration: 0.5, options: .transitionFlipFromLeft, animations: nil) { _ in self.cardView.subviews[0].removeFromSuperview() } } else { - UIView.transition(with: cardView, duration: 1, options: .transitionFlipFromRight, animations: nil) { _ in + UIView.transition(with: cardView, duration: 0.5, options: .transitionFlipFromRight, animations: nil) { _ in self.cardView.subviews[0].removeFromSuperview() } }