How to present a modal atop the current view in Swift
First, remove all explicit setting of modal presentation style in code and do the following: In the storyboard set the ModalViewController’s modalPresentation style to Over Current context Check the checkboxes in the Root/Presenting ViewController – Provide Context and Define Context. They seem to be working even unchecked.