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

# init(row:section:)

Creates an index path that references a row in a particular section.

## Declaration

```swift
init(row: Int, section: Int)
```
