mapbox-ios-patterns
Skill by mapbox
Provides official Mapbox Maps SDK v11 integration patterns for iOS developers using Swift, SwiftUI and UIKit. Covers installation, markers, user location, GeoJSON data, styles, camera control and feature taps.
Install mapbox-ios-patterns
Built from the published package, never by AI.
git clone --depth 1 https://github.com/mapbox/mapbox-agent-skills /tmp/mapbox-agent-skills && mkdir -p ~/.claude/skills && cp -r /tmp/mapbox-agent-skills/skills/mapbox-ios-patterns ~/.claude/skills/mapbox-ios-patternsRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/mapbox/mapbox-agent-skills /tmp/mapbox-agent-skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/mapbox-agent-skills/skills/mapbox-ios-patterns ~/.gemini/antigravity-cli/skills/mapbox-ios-patternsAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install mapbox-ios-patterns in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill gives an AI assistant integration patterns for the Mapbox Maps SDK v11 on iOS. It covers Swift, SwiftUI and UIKit code for installing the SDK, setting up a map, adding markers and annotations, showing user location, and adding GeoJSON data. It also covers map styles, camera control, and feature taps.
The skill points to reference files for deeper topics such as circle, polyline and polygon annotations, camera follow mode, and featureset interactions. It notes that the Marker API is experimental and suits simple cases, while larger datasets should use a GeoJSON source with a symbol layer. It is aimed at developers building iOS apps with Mapbox maps who want official, documentation-based code patterns.
Written from the project's SKILL.md and checked against it.
What it can do
- Installation and setupCovers adding the access token to Info.plist and the Swift Package dependency for MapboxMaps.
- Map initializationShows how to create a map in SwiftUI with the Map view and in UIKit with MapView.
- Markers and annotationsCompares Marker, PointAnnotation and view annotations and when to use each.
- User locationShows how to request location permission and display a user location puck on the map.
- Custom GeoJSON dataCovers adding, updating and removing lines, polygons and points as GeoJSON.
- Styles and cameraCovers map styles such as standard and standardSatellite and camera control.
- Featureset interactionsCovers handling taps on features, custom layer taps, long press and gestures.
- Performance guidanceRecommends reusing annotation managers and batching annotation updates.
What you need
- Free Mapbox account and public access token
- iOS 14 or later
- Xcode 15 or later
- Swift 5.9 or later
Try asking
- Add a red marker for San Francisco to my SwiftUI Mapbox map
- Show the user's location on my iOS map with a 2D puck
- Load a GeoJSON polygon layer into my Mapbox iOS app
Good to know
- The Marker API is experimental and needs @_spi(Experimental) import MapboxMaps.
- Marker is available for SwiftUI only.
- Marker and PointAnnotation suit up to about 100 markers. Larger datasets should use a symbol layer.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/mapbox-ios-patterns/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to mapbox-ios-patterns
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
mapbox-ios-patterns: common questions
Which Mapbox SDK version does this skill cover?
It covers Mapbox Maps SDK v11 for iOS, with Swift, SwiftUI and UIKit examples.
When should I use a symbol layer instead of markers?
The skill says markers suit up to about 100 pins. For hundreds or thousands of features, it recommends a GeoJSON source rendered with a SymbolLayer.
Is the Markers API stable?
The skill describes the Marker API as experimental SPI. It is only available in SwiftUI.
How do I install mapbox-ios-patterns?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is mapbox-ios-patterns free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is mapbox-ios-patterns safe to use?
It scores 73 of 100. Grades: maintenance A, licence A, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to mapbox-ios-patterns?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
