<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta content="text/html; charset=us-ascii">
</head>
<body class="" style="word-wrap:break-word">
<p dir="auto">my swift is 2016-05-09-a-ubuntu14.04.<br>
import Foundation<br>
if Thread.isMainThread {<br>
...<br>
}<br>
but unresolved identifier &quot;Thread&quot; occur<br>
</p>
<br>
<br>
<br>
<div class="gmail_quote">On Wed, Jul 13, 2016 at 3:41 PM &#43;0800, &quot;Jose Cheyo Jimenez&quot;
<span dir="ltr">&lt;<a href="mailto:cheyo@masters3d.com" target="_blank">cheyo@masters3d.com</a>&gt;</span> wrote:<br>
<br>
</div>
<div>
<div class="">//swift 2.2&#43;</div>
<div class="">NSThread.isMainThread()</div>
<div class=""><br class="">
</div>
<div class="">//swift 3&#43;</div>
<div class="">Thread.isMainThread</div>
<div class=""><br class="">
</div>
<br class="">
<div>
<blockquote type="cite" class="">
<div class="">On Jul 13, 2016, at 12:27 AM, qi bo via swift-users &lt;<a href="mailto:swift-users@swift.org" class="">swift-users@swift.org</a>&gt; wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div class="">
<p dir="auto" class="">isMainThread is an method in object-c. how to indicate current thread is main thread?</p>
<p dir="auto" class="">thank you<br class="">
Bob</p>
</div>
_______________________________________________<br class="">
swift-users mailing list<br class="">
<a href="mailto:swift-users@swift.org" class="">swift-users@swift.org</a><br class="">
https://lists.swift.org/mailman/listinfo/swift-users<br class="">
</div>
</blockquote>
</div>
<br class="">
</div>
</body>
</html>