Esri / arcgis-maps-sdk-swift-samples

SwiftUI samples demonstrating various capabilities of ArcGIS Maps SDK for Swift
https://developers.arcgis.com/swift
Apache License 2.0
31 stars 9 forks source link

[Fix] Editing bug in `Create and edit geometries` #476

Closed des12437 closed 3 months ago

des12437 commented 3 months ago

Description

This PR fixes a bug in the Create and edit geometries sample introduced in #452 by setting the selected graphic to nil when editing is cancelled. Otherwise the model still has the selected graphic set which causes unexpected behavior when adding a new graphic, resulting in the previously selected graphic to disappear.

des12437 commented 3 months ago

Thank you both.