title: iOS Swift 3 performSelector onMainThread
body: <p>I used this line in Objective-C</p>
  
  <pre><code>[self performSelectorOnMainThread: @selector(importComplete)
  withObject: nil waitUntilDone: YES];
  </code></pre>
  
  <p>I have tried to convert the above line to any number of variants but have not found anything that will compile.  My current attempt is as follows:</p>
  
  <pre><code>performSelector (onMainThread: #selector(importComplete), withObject:nil, waitUntilDone: false)
  </code></pre>
  
  <p>I have not been able to get my change to compile. The above change delivers the message</p>
  
  <blockquote>
    <p>"Use of unresolved identifier <code>performSelector</code>.</p>
  </blockquote>
  
  <p>I've read everything I can find on this method and it appears to be a mess in Swift 3 anyway, but I'm just learning the language and I've wasted a lot of time on what should be a simple syntax.</p>
  
  <p>Can anyone make a suggestion here?</p>
  
  <p>TIA</p>