Skip to content
Esri Developer
Documentation
Features
Maps and scenes
Portal and content management
Data hosting
Data visualization
Spatial analysis
Place search
Geocoding addresses
Routing and directions
Data enrichment
Elevation
Security and authentication
Offline mapping apps
Find datasets
SDKs and APIs
SDKs and APIs
Products
Explore developer products
Support
Explore help resources
Search
Search
ArcGIS Maps SDK for Swift
Sample Code
Home
Sample Code
API Reference
Toolkit Reference
Analysis
Analyze hotspots
Create buffers around points
Create convex hull around geometries
Create convex hull around points
Create planar and geodetic buffers
Find nearest vertex
Measure distance in scene
Show line of sight between geoelements
Show line of sight between points
Show result of spatial relationships
Show viewshed from geoelement in scene
Show viewshed from point in scene
Show viewshed from point on map
Augmented Reality
Augment reality to collect data
Augment reality to fly over scene
Augment reality to navigate route
Augment reality to show hidden infrastructure
Augment reality to show tabletop scene
Cloud and Portal
Add items to portal
Authenticate with Integrated Windows Authentication
Authenticate with O
Auth
Authenticate with PK
I certificate
Authenticate with token
Create and save map
Search for web map
Show portal user info
Edit and Manage Data
Add features with contingent values
Add tiled layer as basemap
Apply scheduled updates to preplanned map area
Clip geometry
Create KM
L multi-track
Create and save KM
L file
Create geometries
Create mobile geodatabase
Cut geometry
Densify and generalize geometry
Display map from mobile map package
Download preplanned map area
Download vector tiles to local cache
Edit and sync features with feature service
Edit feature attachments
Edit features using feature forms
Edit features with feature-linked annotation
Edit geodatabase with transactions
Edit geometries with programmatic reticle tool
Edit with branch versioning
Generate geodatabase replica from feature service
Generate offline map
Generate offline map with custom parameters
Generate offline map with local basemap
List contents of KM
L file
List geodatabase versions
List spatial reference transformations
Manage features
Project geometry
Project with chosen transformation
Show coordinates in multiple formats
Show geodesic path between two points
Show popup
Show result of spatial operations
Snap geometry edits
Layers
Add KM
L layer
Add KM
L layer with network links
Add WF
S layer
Add WM
S layer
Add WMT
S layer
Add custom dynamic entity data source
Add dynamic entity layer
Add feature collection layer from portal item
Add feature collection layer from query
Add feature collection layer from table
Add feature layer with time offset
Add feature layers
Add integrated mesh layer
Add map image layer
Add point scene layer
Add raster from file
Add raster from service
Add rasters and feature tables from geopackage
Add scene layer from service
Add tiled layer
Add web tiled layer
Apply mosaic rule to rasters
Apply style to WM
S layer
Browse OG
C AP
I feature service
Browse WF
S layers
Browse WM
S layers
Configure clusters
Configure electronic navigational charts
Control annotation sublayer visibility
Display OG
C AP
I collection
Display annotation
Display clusters
Display dimensions
Group layers together
Identify KM
L features
Identify features in WM
S layer
Identify raster cell
Set map image layer sublayer visibility
Set visibility of subtype sublayer
Maps
Add Open
Street
Map layer
Browse building floors
Change map view background
Change viewpoint
Configure basemap style parameters
Create and edit geometries
Create dynamic basemap gallery
Display map
Display map from portal item
Display overview map
Find route in mobile map package
Manage bookmarks
Manage operational layers
Monitor changes to draw status
Monitor changes to layer view state
Monitor changes to map load status
Set basemap
Set initial map location
Set max extent
Set min and max scale
Set reference scale
Set spatial reference
Set up location-driven geotriggers
Set viewpoint rotation
Show callout
Show device location
Show device location history
Show device location using indoor positioning
Show device location with NME
A data sources
Show magnifier
Show mobile map package expiration date
Set initial viewpoint
Show scale bar
Take screenshot
Routing and Logistics
Display route layer
Find closest facility from point
Find closest facility to multiple points
Find route
Find route around barriers
Find route in transport network
Navigate route
Navigate route with rerouting
Show service area
Show service areas for multiple facilities
Scenes
Add 3
D tiles layer
Add elevation source from raster
Add elevation source from tile package
Add point cloud layer from file
Animate 3
D graphic
Apply terrain exaggeration
Change camera controller
Display scene
Display scene from mobile scene package
Display web scene from portal item
Filter features in scene
Get elevation at point on surface
Match viewpoint of geo views
Orbit camera around object
Select features in scene layer
Set atmosphere effect in scene
Set surface navigation constraint
Set surface placement mode
Show extruded graphics
Show realistic light and shadows
Style point with distance composite scene symbol
Style point with scene symbol
Search and Query
Filter by definition expression or display filter
Find address with reverse geocode
Geocode offline
Identify layer features
Query feature count and extent
Query feature table
Query features with Arcade expression
Query map image sublayer
Query related features
Query table statistics
Query table statistics group and sort
Query with CQ
L filters
Query with time extent
Search symbol style dictionary
Search with geocode
Select features in feature layer
Set feature request mode
Utility Networks
Analyze network with subnetwork trace
Create load report
Display content of utility network container
Run valve isolation trace
Show utility associations
Snap geometry edits with utility network rules
Trace utility network
Validate utility network topology
Visualization
Add vector tiled layer from custom style
Animate images with image overlay
Apply RG
B renderer
Apply blend renderer to hillshade
Apply class breaks renderer to sublayer
Apply colormap renderer to raster
Apply dictionary renderer to feature layer
Apply dictionary renderer to graphics overlay