A simple project to understand how to pass data between 2 View Controllers in Swift
There are 2 View Controllers: firstViewController
and secondViewController
textField
: Takes message that the user wants to pass to the secondViewController
sendButton
: Button to segue to the next screen
responseLabel
: A text label to recieve data from the secondViewController
and print it reversed
recievedLabel
: A text Label to display the message recieved from the firstViewController
backButton
: A navigation bar button to go back to the firstViewController