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

# isMainThread

A Boolean value that indicates whether the receiver is the main thread.

## Declaration

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

## Discussion

Discussion true if the receiver is the main thread, otherwise false.

## See Also

### Working with the Main Thread

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