<!--
{
  "availability" : [
    "iOS: 8.0.0 -",
    "iPadOS: 8.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.13.0 -",
    "tvOS: 10.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "PhotoKit",
  "identifier" : "/documentation/Photos/PHFetchResultChangeDetails/changedIndexes",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Photos"
    ],
    "preciseIdentifier" : "c:objc(cs)PHFetchResultChangeDetails(py)changedIndexes"
  },
  "title" : "changedIndexes"
}
-->

# changedIndexes

The indexes of objects in the fetch result whose content or metadata have been updated.

```
var changedIndexes: IndexSet? { get }
```

## Discussion

Use this index set to update elements in a collection view or similar user interface that displays the contents of the fetch result. These indexes are relative to the original fetch result (the [`fetchResultBeforeChanges`](/documentation/Photos/PHFetchResultChangeDetails/fetchResultBeforeChanges) property) after you’ve applied the changes described by the [`removedIndexes`](/documentation/Photos/PHFetchResultChangeDetails/removedIndexes) and [`insertedIndexes`](/documentation/Photos/PHFetchResultChangeDetails/insertedIndexes) properties; when updating your app’s interface, apply changes after removals and insertions and before moves.

> Warning:
> Don’t map `changedIndexes` directly to <doc://com.apple.documentation/documentation/UIKit/UICollectionView> item indices in batch updates. Use these indices to reconfigure the corresponding cells after <doc://com.apple.documentation/documentation/UIKit/UICollectionView/performBatchUpdates(_:completion:)>. <doc://com.apple.documentation/documentation/UIKit/UICollectionView> and <doc://com.apple.documentation/documentation/UIKit/UITableView> expect the `changedIndexes` to be in the *before* state, while PhotoKit provides them in the *after* state, resulting in a crash if your app performs insertions and deletions at the same time as the changes.

If the [`hasIncrementalChanges`](/documentation/Photos/PHFetchResultChangeDetails/hasIncrementalChanges) property’s value is `false`, this property’s value is `nil`.

---

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)