# mapkit

Guides the agent through MapKit and CoreLocation code in Swift apps: maps, markers, geocoding, routes, geofencing.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode · 3200 installs · ★ 1237
- Author: dpearson2699
- License: LicenseRef-Unknown · policy=link-only · description only; the file stays with the author
- Source: https://github.com/dpearson2699/swift-ios-skills/tree/HEAD/skills/mapkit/SKILL.md
- Updated: 2026-07-31
- HTML: https://affpapa.org/en/nevibecode/skills/mapkit

## What it does

The skill covers `Map` and `MapContentBuilder`, markers, annotations, polylines and polygons. For live position it points to `CLLocationUpdate.liveUpdates()`, for geofences to `CLMonitor`. There are sections on geocoding, search with autocomplete, and directions.

Two reference files sit inside: `references/mapkit-patterns.md` for map setup, search, routes, Look Around and snapshots, and `references/mapkit-corelocation-patterns.md` for the update lifecycle, background location, testing and privacy keys. The agent reads them when a task goes past the basic example.

The target is iOS 17 and later, with some sections marked iOS 18 and iOS 26. Tracking position requires `NSLocationWhenInUseUsageDescription` in Info.plist, otherwise the system blocks access. Worth checking before running the examples on a device.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add dpearson2699/swift-ios-skills --skill mapkit -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/mapkit/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/mapkit/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add dpearson2699/swift-ios-skills --skill mapkit -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/mapkit/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add dpearson2699/swift-ios-skills --skill mapkit -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/mapkit/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install dpearson2699/swift-ios-skills mapkit
```

2. **Manually: put the files in place**
- File: `.github/skills/mapkit/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add dpearson2699/swift-ios-skills --skill mapkit -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/dpearson2699/swift-ios-skills --path skills/mapkit
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/mapkit/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add dpearson2699/swift-ios-skills --skill mapkit -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/dpearson2699/swift-ios-skills/tree/HEAD/skills/mapkit/SKILL.md

## When to use it
- add a map with markers to a SwiftUI screen
- stream location updates through an async sequence
- set up a geofence and react to region entry
- convert an address to coordinates and back
- calculate a route and draw it as a polyline

## Example prompts
- Add a map to this screen with cafe markers and a user location button
- Track location with CLLocationUpdate.liveUpdates() and cancel the task when the view goes away
- Build place search with autocomplete and show results as markers

## Similar
- [axiom-location](https://affpapa.org/en/nevibecode/skills/axiom-location.md) — skill · 1000 installs
- [swiftui-patterns](https://affpapa.org/en/nevibecode/skills/affaan-m-swiftui-patterns.md) — skill · 4600 installs
- [swift-expert](https://affpapa.org/en/nevibecode/skills/swift-expert.md) — skill · 4100 installs
- [ios-swift-development](https://affpapa.org/en/nevibecode/skills/ios-swift-development.md) — skill · 1500 installs
- [swiftui-specialist](https://affpapa.org/en/nevibecode/skills/swiftui-specialist.md) — skill · 864 installs
- [swiftui-development](https://affpapa.org/en/nevibecode/skills/swiftui-development.md) — skill · 676 installs

## Other versions with the same name
- [mapkit · prisma-labs-dev](https://affpapa.org/en/nevibecode/skills/prisma-labs-dev-mapkit.md) — 458 installs

From the same set: [dpearson2699/swift-ios-skills](https://affpapa.org/en/nevibecode/by/dpearson2699/swift-ios-skills.md) — 86 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
