Skip to content

Commit 5e78dbd

Browse files
committed
Set vertex tool
1 parent 4e841ac commit 5e78dbd

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -465,6 +465,14 @@ private class GeometryEditorModel: ObservableObject {
465465
selectedGraphic = graphic
466466
graphic.isVisible = false
467467
let geometry = graphic.geometry!
468+
469+
switch geometry {
470+
case is Point, is Multipoint:
471+
geometryEditor.tool = VertexTool()
472+
default:
473+
break
474+
}
475+
468476
geometryEditor.start(withInitial: geometry)
469477
isStarted = true
470478
}

0 commit comments

Comments
 (0)