---
title: init()
framework: foundation
role: symbol
role_heading: Initializer
path: foundation/indexpath/init()
---

# init()

Creates an empty index path.

## Declaration

```swift
init()
```

## See Also

### Creating Index Paths

- [init(index:)](foundation/indexpath/init(index:).md)
- [init(arrayLiteral:)](foundation/indexpath/init(arrayliteral:).md)
- [init(indexes:)](foundation/indexpath/init(indexes:)-7auqk.md)
- [init(indexes:)](foundation/indexpath/init(indexes:)-55we8.md)
- [IndexPath.Element](foundation/indexpath/element.md)
