Hey everyone! Still quite new at coding so any help would be much appreciated, so I have a quiz app and there may be over 100 questions but once it gets to a certain number it sends an alert, after the alert I want it to go back to the main screen, thoughts?
Code Block if questionsAsked >= 4 { // alert user that game is over let alert = UIAlertController(title: "Done", message: "You beat the game", preferredStyle: .alert) alert.addAction(UIAlertAction(title: "Dismiss", style: .cancel, handler: nil)) present(alert, animated: true) }