0

I am working on an app and recently updated to my Xcode. With this update the way view controllers are presented is changed and I want to revert it back to its old ways. They used to display over the other ones but now they "stack".

I would like the iPhone on the left, while what I currently have is the iPhone on the right. enter image description hereThanks.

Agoose Banwatti
  • 410
  • 2
  • 13

1 Answers1

3

You just need to change presented view controller modalPresentationStyle to full screen.

let myModalController = MyModalController()
myModalController.modalPresentationStyle = .overFullScreen
self.present(myModalController, animated: true, completion: nil)
SergStav
  • 750
  • 5
  • 19