title: Turning off Alert When Button Is Pressed Swift
body: <p>I have alert view using this code:</p>
  
  <pre><code>func alert() {
      let alert = UIAlertController(title: "Time Is Up",
                                    message: "Either your company has Sold or had to Fold! (Click the button below to see)",
                                    preferredStyle: .alert)
      let action = UIAlertAction(title: "Next", style: .default) { _ in
          self.performSegue(withIdentifier: "congratsSegue", sender: nil)
      }
  
      alert.addAction(action)
  
      self.present(alert, animated: true, completion: nil)
  }
  </code></pre>
  
  <p>I want to then turn this alert off when the done button pressed: </p>
  
  <pre><code>@IBAction func donePressed() {
  }
  </code></pre>
  
  <p>Is this possible to do in Swift?</p>