Search code examples
swiftuiviewcontrollersegueuistoryboardsegue

ViewController not performing segue as expected


After installing Xcode 11, I started to face this issue. I am trying to segue from LandingViewController to LoginViewController on button click event. The view controller doesn't load in full screen and appears as a popover.

I have tried to instantiate the VC and still no luck. Also I tried directly linking the Login button and the vc but still it was unsuccessful.

 self.performSegue(withIdentifier: "1", sender: nil)

segued vc -1

segued vc -2


Solution

  • As of iOS 13 and Xcode 11, the default presentation mode is no longer fullscreen. If you still want to use fullscreen mode, got to InterfaceBuilder and set the presentation of the viewcontroller to Full Screen, like this:

    Fullscreen setting