0

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

Example

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.

Jan L
  • 149
  • 8
  • @FabioFelici looks like it could work. It's certainly the same issue and it seems like a lot of work is coming my way. Thanks! – Jan L May 13 '22 at 15:54

0 Answers0