-1

Hello everyone I'm fairly new to Xcode. Whenever I add a ViewController and perform a segue to it from a previous screen it looks like this.

Pic of ViewController

I would like it to look full screen instead of having it slide up and down.

This is the View its connected to

This is the code.

if loginMode{
Auth.auth().signIn(withEmail: email, password: password) { (result, error) in
             if error == nil {
                 self.performSegue(withIdentifier: "authSuccess", sender: nil)
             } else {
                 //print(error)
             }
         }

}
Vikash Kumar
  • 642
  • 1
  • 11
  • 25
Hunter
  • 21
  • 7

2 Answers2

3

iOS 13 change the animation

try this

  let VC1 = self.storyboard!.instantiateViewController(withIdentifier: "example")
  VC1.modalPresentationStyle = .fullScreen
  self.navigationController!.present(VC1, animated: true, completion: nil)
Andres Gomez
  • 458
  • 3
  • 12
1

When you present it do this

YOUR_VIEW_CONTROLLER.modalPresentationStyle = .fullScreen