-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCustomAlertTransitioningManager.swift
More file actions
30 lines (23 loc) · 1.05 KB
/
CustomAlertTransitioningManager.swift
File metadata and controls
30 lines (23 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
//
// CustomAlertTransitioningManager.swift
//
// Created by Dave Neff
//
import UIKit
// MARK: - Transitioning delegate
final class CustomAlertTransitioningManager: NSObject, UIViewControllerTransitioningDelegate {
func animationController(forPresented presented: UIViewController,
presenting: UIViewController,
source: UIViewController) -> UIViewControllerAnimatedTransitioning? {
return CustomAlertPresentationAnimation()
}
func animationController(forDismissed dismissed: UIViewController) -> UIViewControllerAnimatedTransitioning? {
return CustomAlertDismissalAnimation()
}
func presentationController(forPresented presented: UIViewController,
presenting: UIViewController?,
source: UIViewController) -> UIPresentationController? {
return CustomAlertPresentationController(presentedViewController: presented,
presenting: presenting)
}
}