I have a ViewController that displays a Map. For some events I present a new ViewController over it with a custom PresentationController as such:
let slideVC = NewBookingAlertViewController(customer: myPassenger)
slideVC.modalPresentationStyle = .custom
slideVC.transitioningDelegate = self as? UIViewControllerTransitioningDelegate
Utilities.topMostController().present(slideVC, animated: true, completion: nil)
the PresentationController makes sure that the View is presented with the correct height and presents from the bottom up with a certain inset. See the image below
This works so far - however, this kind of deactivates the background view. It can no longer receive any taps and is not updated anymore, which is not the behavior I'd like to have. I would like to be able to interact with the background, by pressing buttons and moving the map (pan and tap).
How can I do that? I feel like it is impossible with modal presentation style. I am basically looking for something like a Notification. You can interact normally and after a while it just closes.