title: How to check current thread in Swift 3?
body: <p>How do I check which one is the current thread in Swift 3?</p>
  
  <p>In previous versions of Swift it was possible to check if the current thread was the main one by doing this: </p>
  
  <pre><code>NSThread.isMainThread()
  </code></pre>