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
656 B
Swift
16 lines
656 B
Swift
final class FadeInAnimatedTransitioning: NSObject, UIViewControllerAnimatedTransitioning {
|
|
func transitionDuration(using transitionContext: UIViewControllerContextTransitioning?) -> TimeInterval {
|
|
return kDefaultAnimationDuration
|
|
}
|
|
|
|
func animateTransition(using transitionContext: UIViewControllerContextTransitioning) {
|
|
guard let presentedView = transitionContext.view(forKey: .to) else { return }
|
|
|
|
presentedView.alpha = 0
|
|
UIView.animate(withDuration: transitionDuration(using: transitionContext),
|
|
animations: {
|
|
presentedView.alpha = 1
|
|
}) { transitionContext.completeTransition($0) }
|
|
}
|
|
}
|