---
title: RunLoop.Mode
framework: foundation
role: symbol
role_heading: Structure
path: foundation/runloop/mode
---

# RunLoop.Mode

Modes that a run loop operates in.

## Declaration

```swift
struct Mode
```

## Discussion

Discussion NSApplication defines additional run loop modes, including the following: modalPanel eventTracking

## Topics

### System Run Loop Modes

- [common](foundation/runloop/mode/common.md)
- [default](foundation/runloop/mode/default.md)
- [eventTracking](foundation/runloop/mode/eventtracking.md)
- [modalPanel](foundation/runloop/mode/modalpanel.md)
- [tracking](foundation/runloop/mode/tracking.md)

### Run Loop Mode Creation

- [init(_:)](foundation/runloop/mode/init(_:).md)
- [init(rawValue:)](foundation/runloop/mode/init(rawvalue:).md)

## Relationships

### Conforms To

- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Accessing Run Loops and Modes

- [current](foundation/runloop/current.md)
- [currentMode](foundation/runloop/currentmode.md)
- [limitDate(forMode:)](foundation/runloop/limitdate(formode:).md)
- [main](foundation/runloop/main.md)
- [getCFRunLoop()](foundation/runloop/getcfrunloop().md)
