j___.___j
j___.___j

Reputation: 326

Xcode 11 Segues

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?

Upvotes: 0

Views: 1010

Answers (2)

Summer Breeze
Summer Breeze

Reputation: 1

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 )
}

Upvotes: 0

Mike
Mike

Reputation: 180

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

Upvotes: 3

Related Questions