I want to pass a string between two Interface Controllers. On InterfaceController1
I want to create a variable like:
var level: String = ("easy")
And then be able to access that variable on InterfaceController2
.
There is currently just one answer on Stack Overflow but it was created when Swift 1 was out and I can't find any up to date answers.
I would prefer not to use global variables as I am aware that they are not recommended.