So I am making an interactive story programmatically and I want a way to restart the game. (i.e clear everything) the only thing that I have found is
func refreshView() ->() {
// Calling the viewDidLoad and viewWillAppear methods to "refresh" the VC and run through the code within the methods themselves
self.viewDidLoad
self.viewWillAppear
}
func refreshVC(sender: AnyObject) {
self.refreshView()
}
except it is saying "expression resolves to an unused function" Anyone know a way to solve this?