<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: 27.0.0 -",
    "macOS: 27.0.0 -",
    "tvOS: 27.0.0 -",
    "visionOS: 27.0.0 -",
    "watchOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftData",
  "identifier" : "/documentation/SwiftData/HistoryObserver/observedModels",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "SwiftData"
    ],
    "preciseIdentifier" : "s:9SwiftData15HistoryObserverC14observedModelsSayAA15PersistentModel_pXpGvp"
  },
  "title" : "observedModels"
}
-->

# observedModels

The model types that the observer filters for when evaluating history
transactions.

```
final let observedModels: [any PersistentModel.Type]
```

## Discussion

When non-empty, the observer only reports changes whose transactions
contain modifications to instances of these types. When empty, the
observer treats any new transaction as relevant.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)