Objective:
Use one of the following things to transfer data from one page to another
1-) Notification center
2-) Delegate
3-) Closure
Notes:
I used Notification Center for sending username and name values from the register page to calculation page and used Delegate method for sending values from calculation page to result page. Also used UserDefaults to save username and name values
Screenshots: