I am very new to programming in XCode and have been creating small little apps that allow me to understand XCode & Swift in general. Currently I am making a question app that allows the user to press a button, checks if the answer is correct and depending on whether it is or not it will change the view to one of two, the correct or incorrect view.
Here is the storyboard: Storyboard Layout
Now, transition between the different views is fine, however when I go back to the main view from either the incorrect or correct view the label is reset back to the original label shown in the storyboard.
How can I make it so that when I change back to the main view from either the correct or incorrect views, the label stays on the same question shown before moving views.
Here is my Code: https://codedump.io/share/1EgsRsJOUUbY/1/first-app
Any help would be great!
~ Alex