<!--
{
  "availability" : [
    "iOS: 12.0.0 -",
    "iPadOS: 12.0.0 -",
    "macCatalyst: 13.1.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CarPlay",
  "identifier" : "/documentation/CarPlay/CPListSection/index(of:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "CarPlay"
    ],
    "preciseIdentifier" : "c:objc(cs)CPListSection(im)indexOfItem:"
  },
  "title" : "index(of:)"
}
-->

# index(of:)

Returns the index of the specified item.

```
func index(of item: any CPListTemplateItem) -> Int
```

## Parameters

`item`

The item to find in the section.

## Return Value

The item’s index in the section, or <doc://com.apple.documentation/documentation/Foundation/NSNotFound-4qp9h> if the section doesn’t contain the item.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)