Question: how to pass data from one viewcontroller to another view controller swift?
Answer: when a segue is performed. triggering transitions programmatically in your code. through the state of the app. using singletons. using the app delegate. assigning a delegate to a view controller. through unwind segues.