New advertisers: 50% off your first month with code FIRSTMONTHSee slots
mapbox avatar

Mapbox Ios Patterns

Official integration patterns for Mapbox Maps SDK v11 on iOS, covering SwiftUI and UIKit setups.

skills.sh installs
1.5K
GitHub stars
87
last updated
Aug 21, 2026
View on GitHub

What it does

  • Covers installation, token configuration, map initialization, markers, user location, and performance practices for iOS 14+ projects
  • Includes SwiftUI and UIKit code samples for basic maps, ornaments, PointAnnotation, and Marker placement
  • Compares marker APIs and advises switching to a SymbolLayer on a GeoJSONSource beyond about 100 markers
  • Designed for developers adding Mapbox maps to Swift apps with Xcode 15 or later

Install

$ npx -y skills add mapbox/mapbox-agent-skills --skill mapbox-ios-patterns -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Mapbox iOS Integration Patterns

Official patterns for integrating Mapbox Maps SDK v11 on iOS with Swift, SwiftUI, and UIKit.

Use this skill when:

  • Installing and configuring Mapbox Maps SDK for iOS
  • Adding markers and annotations to maps
  • Showing user location and tracking with camera
  • Adding custom data (GeoJSON) to maps
  • Working with map styles, camera, or user interaction
  • Handling feature interactions and taps

Official Resources:


Installation & Setup

Requirements

  • iOS 14+
  • Xcode 15+
  • Swift 5.9+
  • Free Mapbox account

Step 1: Configure Access Token

Add your public token to Info.plist:

<key>MBXAccessToken</key>
<string>pk.your_mapbox_token_here</string>

Get your token: Sign in at mapbox.com

Step 2: Add Swift Package Dependency

Details

Repository
github.com/mapbox/mapbox-agent-skills
Categories
Mobile Apps, Frontend & UI Code
First seen
May 16, 2026

More from mapbox/mapbox-agent-skills

All 18

Similar to Mapbox Ios Patterns

More Mobile Apps