isMainThread A Boolean value that indicates whether the receiver is the main thread. Declarationvar isMainThread: Bool { get } Discussiontrue if the receiver is the main thread, otherwise false. See AlsoWorking with the Main ThreadisMainThreadmain