title: Swift - segue programmatically takes two seconds to show view controller the first time
body: <p>I can't find why a segue programmatically takes about 2 seconds to show the view controller the first time. When I return to the view controller and try to perform the segue again, it doesn't take time to show the view controller. These view controllers I have opened from a modal segue.</p>
  
  <p>I'm doing something like this:</p>
  
  <pre><code>override func tableView(tableView: UITableView, didSelectRowAtIndexPath indexPath: NSIndexPath) {
      dispatch_async(dispatch_get_main_queue()) {
          self.performSegueWithIdentifier("&lt;segue identifier&gt;", sender: indexPath)
      }
  }
  </code></pre>
  
  <p>And for the <code>UITableView</code> I disabled the <code>delaysContentTouches</code> option. And it still doesn't work, it just takes about two seconds to open, but only the first time.</p>
  
  <p>Meanwhile I have an <code>NSTimer</code> fetching data from a web service, but I read that <code>NSTimer</code> executes on a different thread, so I think this is not the problem.</p>
  
  <p>Am I missing something to make the segue show the view controller faster?</p>