<!--
{
  "availability" : [
    "iOS: 18.0.0 -",
    "iPadOS: 18.0.0 -",
    "macCatalyst: -",
    "macOS: 15.0.0 -",
    "tvOS: 18.0.0 -",
    "visionOS: 2.0.0 -",
    "watchOS: 11.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MapKit",
  "identifier" : "/documentation/MapKit/MapSelection",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "MapKit",
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:15_MapKit_SwiftUI0A9SelectionV"
  },
  "title" : "MapSelection"
}
-->

# MapSelection

A value representing a selected feature on a map.

```
struct MapSelection<SelectionValue> where SelectionValue : Hashable
```

## Topics

### Creating a map selection

[`init(_:)`](/documentation/MapKit/MapSelection/init(_:))

Creates a map selection with a tag.

### Getting the properties

[`value`](/documentation/MapKit/MapSelection/value)

The selection of the given tag value.

## Relationships

### Conforms To

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

[`MapSelectable`](/documentation/MapKit/MapSelectable)

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

---

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)