There are a number of ways to get started to develop with ArcGIS Maps SDK for Swift. If you are new, follow the steps below to get started with Swift and Xcode.
TopicBefore proceeding, review the System requirements to ensure your machine has the required hardware and correct versions for software dependencies.
1. Sign up for an accountTo use ArcGIS Maps SDK for Swift to access content, services, or an organization, you need an ArcGIS Location Platform account, ArcGIS Online account, or ArcGIS Enterprise account. The type of account, user type, and role you need depends on the resource you need to access and the operations you wish to undertake.
If you do not have an account, select one of the options below:
Get a free account for ArcGIS Location Platform
Get a free trial and account for ArcGIS Online
TipTo get an account for an existing ArcGIS organization contact your ArcGIS Online or ArcGIS Enterprise administrator.
2. Get the SDK and dependenciesInstall a supported version of Xcode
Get the ArcGIS Maps SDK for Swift
https://github.com/Esri/arcgis-maps-sdk-swift
as the package repository URL..swift
files using: import ArcGIS
.For more details, go to Install and set up.
3. Implement authenticationTo access secure ArcGIS services and resources, you need to implement authentication. The easiest way to get started is to obtain an access token from an API Key and implement API key authentication. If you want to build an app that requires users to sign in with their ArcGIS account, implement user authentication.
API key authentication
User authentication
API key authentication
User authentication
4. Create your first mapping applicationFollow the step-by-step instructions in the Display a map tutorial to create your first mapping application. The following code shows how you can create and display a map.
Use dark colors for code blocks Copy
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// Creates a map with the topographic basemap style.
@State private var map = Map(basemapStyle: .arcGISTopographic)
// Creates a map view with the map.
var body: some View {
MapView(map: map)
}
Once you are done building your application, make sure to license it before deploying to production. For more information, see License and deployment topic for details.
5. Follow the tutorialsGo to the tutorials to create and run applications to perform different operations.
6. Explore the samplesGo to the samples to learn how to perform more tasks with the API.
Next stepsRetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4