title: Check if Admob interstitial is completed
body: <p>I'm building my iOS application, and I've added a couple of advertisement to it. But I just found out a problem.</p>
  
  <p>When the AdMob interstitial is running, It won't perform the segue after the advertisement is done.</p>
  
  <pre><code>if self.interstitial.isReady
  {    
      self.interstitial.present(fromRootViewController: self)
      self.performSegue(withIdentifier: "History", sender: self)
  }
  </code></pre>
  
  <p>So, once I press the "X" to close the advertisement, it won't perform the segue. it just remains on the same page as before. </p>
  
  <p>How can I fix this? Thanks!</p>
  
  <p>edit</p>
  
  <hr>
  
  <p>So, when I click on a "SAVE" button, this code will be running. </p>
  
  <pre><code>if self.interstitial.isReady
  {
     self.interstitial.present(fromRootViewController: self)
     self.interstitialDidDismissScreen(self.interstitial) //Calling the dismiss function here                                          
  }  
  </code></pre>
  
  <p>&lt;</p>
  
  <pre><code>//Advertisement will dismiss from the screen
  func interstitialDidDismissScreen(_ ad: GADInterstitial)
  {
      self.performSegue(withIdentifier: "History", sender: self)
  }
  </code></pre>
  
  <p>Somehow it still won't perform the segue.</p>