---
title: isMainThread
framework: foundation
role: symbol
role_heading: Type Property
path: foundation/thread/ismainthread-swift.type.property
---

# isMainThread

Returns a Boolean value that indicates whether the current thread is the main thread.

## Declaration

```swift
class var isMainThread: Bool { get }
```

## Return Value

Return Value true if the current thread is the main thread, otherwise false.

## See Also

### Working with the Main Thread

- [isMainThread](foundation/thread/ismainthread-swift.property.md)
- [main](foundation/thread/main.md)
