Passing data back and forward between view controllers
I will go straight to the point and tell you how to send data back and forward in different situations. This code was written in Swift 3 Sending data forward using Segue If you are navigating from ViewControllerA to ViewControllerB using Segue called “toViewControllerB” then do the following steps