We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 89bc344 commit 0ecb0ddCopy full SHA for 0ecb0dd
Shared/Samples/Create and edit geometries/CreateAndEditGeometriesView.swift
@@ -462,17 +462,9 @@ private class GeometryEditorModel: ObservableObject {
462
/// Starts editing a given graphic with the geometry editor.
463
/// - Parameter graphic: The graphic to edit.
464
func startEditing(with graphic: Graphic) {
465
- let geometry = graphic.geometry!
466
-
467
- switch geometry {
468
- case is Point, is Multipoint:
469
- geometryEditor.tool = VertexTool()
470
- default:
471
- break
472
- }
473
474
selectedGraphic = graphic
475
graphic.isVisible = false
+ let geometry = graphic.geometry!
476
geometryEditor.start(withInitial: geometry)
477
isStarted = true
478
}
0 commit comments