<!--
{
  "availability" : [
    "iOS: 9.3.0 -",
    "iPadOS: 9.3.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.11.4 -",
    "tvOS: 9.2.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 3.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MapKit",
  "identifier" : "/documentation/MapKit/MKLocalSearchCompletion",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "MapKit"
    ],
    "preciseIdentifier" : "c:objc(cs)MKLocalSearchCompletion"
  },
  "title" : "MKLocalSearchCompletion"
}
-->

# MKLocalSearchCompletion

A fully formed string that completes a partial string.

```
class MKLocalSearchCompletion
```

## Overview

You don’t create instances of this class directly. Instead, you use an [`MKLocalSearchCompleter`](/documentation/MapKit/MKLocalSearchCompleter) to initiate a search based on a set of partial search strings. That object stores any matches in its results property. Retrieve any `MKLocalSearchCompletion` objects from that property and display the search terms in your interface, or use one to initiate a search for content based on that search term.

When displaying text completions for a partial search term in your user interface, you might want to use a bold version of a font or add some other highlighting to the portion of the completion string that causes it to match the partial search term. To help you add this styling, the completion object includes highlight ranges for the title and subtitle strings.

## Topics

### Getting the search completions

[`title`](/documentation/MapKit/MKLocalSearchCompletion/title)

The title string associated with the point of interest.

[`subtitle`](/documentation/MapKit/MKLocalSearchCompletion/subtitle)

The subtitle (if any) associated with the point of interest.

[`titleHighlightRanges`](/documentation/MapKit/MKLocalSearchCompletion/titleHighlightRanges)

The ranges of characters to highlight in the title string.

[`subtitleHighlightRanges`](/documentation/MapKit/MKLocalSearchCompletion/subtitleHighlightRanges)

The ranges of characters to highlight in the subtitle string.

## Relationships

### Conforms To

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

[`CustomDebugStringConvertible`](/documentation/Swift/CustomDebugStringConvertible)

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

[`CVarArg`](/documentation/Swift/CVarArg)

[`Hashable`](/documentation/Swift/Hashable)

[`Equatable`](/documentation/Swift/Equatable)

### Inherits From

[`NSObject-swift.class`](/documentation/ObjectiveC/NSObject-swift.class)

---

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)