Skip to content

Commit 0ecb0dd

Browse files
committed
Remove logic to set vertex tool
1 parent 89bc344 commit 0ecb0dd

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

Shared/Samples/Create and edit geometries/CreateAndEditGeometriesView.swift

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -462,17 +462,9 @@ private class GeometryEditorModel: ObservableObject {
462462
/// Starts editing a given graphic with the geometry editor.
463463
/// - Parameter graphic: The graphic to edit.
464464
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-
474465
selectedGraphic = graphic
475466
graphic.isVisible = false
467+
let geometry = graphic.geometry!
476468
geometryEditor.start(withInitial: geometry)
477469
isStarted = true
478470
}

0 commit comments

Comments
 (0)