diff options
Diffstat (limited to 'Map/Presentation/Base Components/MapRender/MapVertices.swift')
| -rw-r--r-- | Map/Presentation/Base Components/MapRender/MapVertices.swift | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Map/Presentation/Base Components/MapRender/MapVertices.swift b/Map/Presentation/Base Components/MapRender/MapVertices.swift index a3558fa..0ab7fab 100644 --- a/Map/Presentation/Base Components/MapRender/MapVertices.swift +++ b/Map/Presentation/Base Components/MapRender/MapVertices.swift @@ -23,7 +23,7 @@ struct MapVertices: View { let padding = CGFloat(5.0) @State private var offset = CGSize.zero - @State private var draggingVertex: Vertex? = nil + @State private var draggingVertex: Vertex? var onDragVertex: (Vertex, CGFloat, CGFloat) -> Void = { _, _, _ in } @@ -156,7 +156,7 @@ struct MapVertices: View { Vertex(id: 0, label: "A Circle", position: CGPoint(x: 50.0, y: 50.0)), Vertex(id: 1, label: "A Square", position: CGPoint(x: 10.0, y: 20.0), shape: .square), Vertex(id: 2, label: "A triangle", position: CGPoint(x: 25, y: 32.0), shape: .triangle), - Vertex(id: 3, label: "An X", position: CGPoint(x: 70.0, y: 70.0), shape: .xMark), + Vertex(id: 3, label: "An X", position: CGPoint(x: 70.0, y: 70.0), shape: .xMark) ], labelPositions: [:]) } |