mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-19 13:03:36 +00:00
To expand with full Organic Maps and Maps.ME commits history run: git remote add om-historic [om-historic.git repo url] git fetch --tags om-historic git replace squashed-history historic-commits
16 lines
658 B
Swift
16 lines
658 B
Swift
final class FadeOutAnimatedTransitioning: NSObject, UIViewControllerAnimatedTransitioning {
|
|
func transitionDuration(using transitionContext: UIViewControllerContextTransitioning?) -> TimeInterval {
|
|
return kDefaultAnimationDuration
|
|
}
|
|
|
|
func animateTransition(using transitionContext: UIViewControllerContextTransitioning) {
|
|
guard let presentedView = transitionContext.view(forKey: .from) else { return }
|
|
UIView.animate(withDuration: transitionDuration(using: transitionContext),
|
|
animations: {
|
|
presentedView.alpha = 0
|
|
}) { finished in
|
|
transitionContext.completeTransition(finished)
|
|
}
|
|
}
|
|
}
|