Reputation: 323
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)
Upvotes: 0
Views: 342
Reputation: 118
An alternative solution to the given ones:
You can instantiate storyboard and targeted view controller in prepare for segue and then:
let VC: yourViewClass = segue.destination as! yourViewClass
VC.modalPresentationStyle = .fullScreen
Upvotes: 1
Reputation: 1127
For more info have a look at View Controller Presentation Style Changes in iOS13
Upvotes: 0
Reputation: 347
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:
Upvotes: 1