Swift and objective c developer
Budget: $10 – $30 USD
I need to use this : https://github.com/aivars/SlideOverTutorial with objective c view controller , in swift to use this to present view controller you only use :
let slideVC = OverlayView()
slideVC.modalPresentationStyle = .custom
slideVC.transitioningDelegate = self
self.present(slideVC, animated: true, completion: nil)
and put the extension inside the view controller :
extension ViewController: UIViewControllerTransitioningDelegate {
func presentationController(forPresented presented: UIViewController, presenting: UIViewController?, source: UIViewController) -> UIPresentationController? {
PresentationController(presentedViewController: presented, presenting: presenting)
}
}
let slideVC = OverlayView()
slideVC.modalPresentationStyle = .custom
slideVC.transitioningDelegate = self
self.present(slideVC, animated: true, completion: nil)
and put the extension inside the view controller :
extension ViewController: UIViewControllerTransitioningDelegate {
func presentationController(forPresented presented: UIViewController, presenting: UIViewController?, source: UIViewController) -> UIPresentationController? {
PresentationController(presentedViewController: presented, presenting: presenting)
}
}