---
title: modelContainer
framework: swiftdata
role: symbol
role_heading: Instance Property
path: swiftdata/modelactor/modelcontainer
---

# modelContainer

The ModelContainer for the ModelActor The container that manages the app’s schema and model storage configuration

## Declaration

```swift
nonisolated var modelContainer: ModelContainer { get }
```

## See Also

### Accessing the container and context

- [modelContext](swiftdata/modelactor/modelcontext.md)
