<!--
{
  "availability" : [
    "iOS: 3.0.0 -",
    "iPadOS: 3.0.0 -",
    "macCatalyst: 13.1.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UITableView/indexSearch",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:@UITableViewIndexSearch"
  },
  "title" : "indexSearch"
}
-->

# indexSearch

A constant for adding the magnifying glass icon to the section index of a table view.

```
class let indexSearch: String
```

## Discussion

If the data source includes this constant string in the array of strings it returns in [`sectionIndexTitles(for:)`](/documentation/UIKit/UITableViewDataSource/sectionIndexTitles(for:)), the section index displays a magnifying glass icon at the corresponding index location. This location should generally be the first title in the index.

---

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)