[swift-users] Is there method indiicate current thread is mainthread in swift?
Jens Alfke
jens at mooseyard.com
Wed Jul 13 10:34:19 CDT 2016
> On Jul 13, 2016, at 7:20 AM, Mark Dalrymple via swift-users <swift-users at swift.org> wrote:
>
> It's a change in Xcode 8.2 - NSThread.isMainThread in ObjC land is now a class property:
^^ Xcode 8.0 (beta)
> In Xcode 8.1(and since iPhone OS 2) it was a regular old-school class method:
^^ Xcode 7.x
Strictly speaking, this is a change in the iOS 10 / macOS 10.12 SDKs (but of course they’re rev-locked to Xcode versions.)
—Jens
More information about the swift-users
mailing list