-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
  • 626
  • 1
  • 11
  • 25
Hunter
  • 21
  • 6

2 Answers2

2

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
  • 438
  • 3
  • 10
0

When you present it do this

YOUR_VIEW_CONTROLLER.modalPresentationStyle = .fullScreen