Contents

MapKit for SwiftUI

MapKit for SwiftUI allows you to build map-centric views and apps across Apple platforms. You can design expressive and highly interactive Maps with minimal code by composing views, using ViewBuilders and view modifiers.

Overview

Like MapKit for AppKit and UIKit, MapKit for SwiftUI allows you to take advantage of map styles ranging from satellite imagery to rich, 3D perspective imagery to present vivid maps. Using MapContentBuilder you can configure your maps to show Marker and Annotation views, or — for more specialized content — you can design your own SwiftUI views to place on the map. To add even more interactivity, MapKit for SwiftUI supports overlays to highlight areas on the map, enabling you to animate paths and directions using MapPolyline, or make it easy for people to dig deeper into on the ground details with tappable points of interest. People who use your app can also explore at street level using LookAroundPreview and Look Around viewer.

Topics

Essentials

Annotations and overlays

Map controls

Exploring at street level

Map features

Map customization

Place information

Geocoding

Representing places and addresses

Points of interest

Protocols

Structures

See Also

The MapKit APIs