---
title: CFRunLoopGetMain()
framework: corefoundation
role: symbol
role_heading: Function
path: corefoundation/cfrunloopgetmain()
---

# CFRunLoopGetMain()

Returns the main CFRunLoop object.

## Declaration

```swift
func CFRunLoopGetMain() -> CFRunLoop!
```

## Return Value

Return Value The main run loop. Ownership follows the The Get Rule.

## See Also

### Getting a Run Loop

- [CFRunLoopGetCurrent()](corefoundation/cfrunloopgetcurrent().md)
