Initial ViewController still showing after segue


Initial ViewController still showing after segue



The app I am currently working on requires that I do not use ANY storyboards. Therefore I need to do everything programmatically. One thing I seem to be struggling with is switching between two UIViewControllers.



The code I am using to go from VC1 to VC2 is:


self.present(signUpVC(), animated: true, completion: nil)



And the code I am using to go from VC2 back to VC1 is:


self.dismiss()



The problem I seem to be facing is that as VC2 is coming up, VC1 is still visible in the background (frame 1):



(Frame 1)



Here is the next frame:



(Frame 2)



This is the final frame of the transition, and as you can see, the initial view is still visible in the background (Frame 3):



(Frame 3)



Is there any way I can fix this issue?





Is the background of the view controller clear? Show some code
– Scriptable
Jun 29 at 22:20









By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Comments

Popular posts from this blog

paramiko-expect timeout is happening after executing the command

Opening a url is failing in Swift

Export result set on Dbeaver to CSV