---
title: modelExecutor
framework: swiftdata
role: symbol
role_heading: Instance Property
path: swiftdata/modelactor/modelexecutor
---

# modelExecutor

The executor that coordinates access to the model actor.

## Declaration

```swift
nonisolated var modelExecutor: any ModelExecutor { get }
```

## Discussion

Discussion important: Don’t use the executor to access the model context. Instead, use the modelContext property.

## See Also

### Accessing the executors

- [unownedExecutor](swiftdata/modelactor/unownedexecutor.md)
