---
title: insertedIndexes
framework: photos
role: symbol
role_heading: Instance Property
path: photos/phfetchresultchangedetails/insertedindexes
---

# insertedIndexes

The indexes where new objects have been inserted in the fetch result.

## Declaration

```swift
var insertedIndexes: IndexSet? { get }
```

## Discussion

Discussion Use this index set can to insert 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 property) after you’ve applied the changes described by the removedIndexes property; when updating your app’s interface, apply insertions after removals and before changes and moves. If the hasIncrementalChanges property’s value is false, this property’s value is nil.

## See Also

### Getting Change Information

- [hasIncrementalChanges](photos/phfetchresultchangedetails/hasincrementalchanges.md)
- [removedIndexes](photos/phfetchresultchangedetails/removedindexes.md)
- [removedObjects](photos/phfetchresultchangedetails/removedobjects.md)
- [insertedObjects](photos/phfetchresultchangedetails/insertedobjects.md)
- [changedIndexes](photos/phfetchresultchangedetails/changedindexes.md)
- [changedObjects](photos/phfetchresultchangedetails/changedobjects.md)
- [hasMoves](photos/phfetchresultchangedetails/hasmoves.md)
- [enumerateMoves(_:)](photos/phfetchresultchangedetails/enumeratemoves(_:).md)
