I want to present different outlets to the user for different stages of a registration form. For example they enter their first name and last name, press continue and then go onto the next part of the form to enter their date of birth etc and at each stage of the form I want it to be part of a navigation view controller so they can easily press back to go back to the previous part and perhaps change it. Just like how snapchat does when you sign up.
I want only one view controller which will manage all the validation and outlets from the various parts of the form.
I tried creating multiple of the same view controller, and putting different text fields and buttons etc on each page. They were then all embedded in a navigation view controller with segues to each part of the form. The problem with using the same view controller is every time viewDidLoad is called it re-initialises the outlets so ones the user previously entered become nil. I dont want to just save the textfields to a struct for example because the user can press back to go back to this field (and i dont want them to then have to re-enter the information). There must be a simple way to do this?
Also I dont want to create a different view controller for every part because this seems wasteful as not much is displayed on each part