App/WhatToWear/WhatToWear/Objects/Transitioners/BottomAnchoredTransitioner.swift
import UIKit
public final class BottomAnchoredTransitioner: NSObject, UIViewControllerTransitioningDelegate {
public func animationController(
forPresented presented: UIViewController,
presenting: UIViewController,
source: UIViewController
) -> UIViewControllerAnimatedTransitioning? {
return BottomAnchoredPresentAnimator()
}
public func animationController(forDismissed dismissed: UIViewController) -> UIViewControllerAnimatedTransitioning? {
return BottomAnchoredDismissAnimator()
}
public func interactionControllerForPresentation(
using animator: UIViewControllerAnimatedTransitioning
) -> UIViewControllerInteractiveTransitioning? {
return nil
}
public func interactionControllerForDismissal(
using animator: UIViewControllerAnimatedTransitioning
) -> UIViewControllerInteractiveTransitioning? {
return nil
}
public func presentationController(
forPresented presented: UIViewController,
presenting: UIViewController?,
source: UIViewController
) -> UIPresentationController? {
return DimmedPresentationController(presentedViewController: presented, presenting: presenting)
}
}