0

Whenever I am using segues in the Xcode 11 beta (here just changing between two VCs using a swipe gesture), the second VC pops up as a card:

enter image description here

How can I prevent this?

j___.___j
  • 286
  • 1
  • 3
  • 20

2 Answers2

3

Id take a look at this article. It explains well why its happening and gives an example of how to revert it back to the standard style.

View Controller Presentation Changes

Mike
  • 170
  • 1
  • 11
0

If anyone is doing the segue programmatically, the code needs to be something similar to this:

@objc func buttonClicked(_ sender: UIButton) {

    let vc = ViewControllerB() //Destination controller

    vc.modalPresentationStyle = .fullScreen  // This line is needed now
    vc.modalTransitionStyle = .flipHorizontal

    self.present( vc, animated: true, completion: nil )
}