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

# init(index:)

Initializes an index path with a single node.

## Declaration

```swift
convenience init(index: Int)
```

## Parameters

- `index`: Index of the item in node 0 to point to.

## Return Value

Return Value Initialized NSIndexPath object representing a one-node index path with index.

## See Also

### Creating and Initializing Index Paths

- [init(indexes:length:)](foundation/nsindexpath/init(indexes:length:).md)
