ArcGIS Maps SDK for Swift offers an open source toolkit that contains ready-made UI components to simplify the development of mapping and GIS apps in Swift. Check out the examples project to see these components in action or read through the documentation to learn more about them.
To use Toolkit in your project:
https://github.com/Esri/arcgis-maps-sdk-swift-toolkit
as the package repository URL.init(promptForUntrustedHosts:oAuthUserConfigurations:)
is deprecated and replaced by init(promptForUntrustedHosts:oAuthUserConfigurations:iapConfigurations:)
to support authenticating with IAP by optionally passing in configuration settings for the proxy.ArcGISAuthenticationChallengeType
which allows the authenticator to better decide which type of ArcGISCredential
should be created to handle the underlying authentication challenge.oAuthUserConfigurations
and iapConfigurations
are now public read-write properties to allow setting configurations more easily.FeatureForm
view adds support for viewing utility network associations. Associations model relationships between utility assets in the real world based on connectivity, containment, or structural attachment.UtilityAssociationsFormElement
configuration. No associations are displayed if the form doesn't contain the required settings. If the view is used without a form definition, all available associations are displayed without any filters.
init(featureForm:)
is deprecated and replaced by init(root:isPresented:)
.FeatureFormView
uses a NavigationStack
internally to support browsing utility network associations. The new initializer provides an isolated navigation context for the feature form.UtilityAssociationsFormElement
.editingButtons(_:)
is added to control the visibility of new built-in Save and Discard buttons.navigationDisabled(_:)
is added to prevent users from navigating to other associations.onFeatureFormChanged(perform:)
and onFormEditingEvent(perform:)
are added to allow receiving change events from the form.
UtilityAssociationsFormElement
.PopupView
adds support for viewing utility network associations. Associations model relationships between utility assets in the real world based on connectivity, containment, or structural attachment.UtilityAssociationsPopupElement
configuration and presents results in collapsible groups by layer, table, or subtype. The view shows relevant association details - such as connected terminals or fraction along an edge - and supports navigation to the popup of an associated feature, whether spatial or non-spatial, with a back button to return to the previous view. It allows users to exit all associations at once, returning to the original feature, and only display associations that are currently available on the map.
init(popup:isPresented:)
is deprecated and replaced by init(root:isPresented:)
to better support navigating between associated features. PopupView
uses a NavigationStack
internally to support browsing utility network associations, and the new initializer provides an isolated navigation context for the popup view.header(_:)
modifier is deprecated. With the new navigation context, the view owns and manages its own navigation stack, so there's no longer support for hiding the header.showCloseButton(_:)
modifier is deprecated. With the new navigation context, the view decides whether or not to show the close button by the isPresented
initializer parameter.onPopupChanged(perform:)
is added to support custom actions when browsing between popups associated via a UtilityAssociationsPopupElement
.For a complete history of enhancements, visit the toolkit Release
Resources Instructions Swift Package Managerhttps://github.com/Esri/arcgis-maps-sdk-swift-toolkit
as the package repository URL.import ArcGIS
and import ArcGISToolkit
in your source code and start using the toolkit components.The Toolkit Swift Package adds the ArcGIS Maps SDK for Swift Package as a dependency so no need to add both separately. If you already have the ArcGIS Maps SDK for Swift Package, delete that and just add the Toolkit Swift Package.
New to Swift Package Manager? Visit swift.org/package-manager/.
Access ArcGIS location servicesThe toolkit examples app has been updated to make use of the ArcGIS basemaps defined with default basemap styles. These basemaps take advantage of geographically load-balanced ArcGIS location services and allow you to monitor usage with API keys or access tokens from user authentication. To use the toolkit examples app, you must implement API key authentication or user authentication. For more information, see How to use an API key or How to implement user authentication.
SwiftLintBoth the toolkit and examples app support SwiftLint. You can install SwiftLint from here. It is not necessary to have it installed in order to build, but you will get a warning without it. The specific rules the linter uses can be found in the swiftlint.yml
files in the Toolkit
and Examples
directories.
Find a bug or want to request a new feature? Please let us know by submitting an issue.
RetroSearch 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