---
title: "init(object:type:index:)"
framework: foundation
role: symbol
role_heading: Initializer
path: "foundation/nsorderedcollectionchange/init(object:type:index:)"
---

# init(object:type:index:)

Creates a change object that represents inserting or removing an object from an ordered collection at a specific index.

## Declaration

```swift
convenience init(object anObject: Any?, type: NSCollectionChangeType, index: Int)
```

## Parameters

- `anObject`: An optional object the change will remove or insert.
- `type`: The type of change.
- `index`: The index location within an ordered collection where the change applies.

## See Also

### Creating a Change

- [init(object:type:index:associatedIndex:)](foundation/nsorderedcollectionchange/init(object:type:index:associatedindex:).md)
