isMainThread
Returns a Boolean value that indicates whether the current thread is the main thread.
Declaration
class var isMainThread: Bool { get }Return Value
true if the current thread is the main thread, otherwise false.
Returns a Boolean value that indicates whether the current thread is the main thread.
class var isMainThread: Bool { get }true if the current thread is the main thread, otherwise false.