Skip to content

Commit 6409029

Browse files
committed
Update routing name.
#297 (comment)
1 parent 132c4da commit 6409029

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Shared/Samples/Find closest facility from point/FindClosestFacilityFromPointView.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ struct FindClosestFacilityFromPointView: View {
3737
MapViewReader { mapViewProxy in
3838
MapView(map: model.map, graphicsOverlays: [model.graphicsOverlay])
3939
.overlay(alignment: .center) {
40-
if routing {
40+
if isRouting {
4141
ProgressView("Routing...")
4242
.padding()
4343
.background(.ultraThickMaterial)
@@ -50,8 +50,8 @@ struct FindClosestFacilityFromPointView: View {
5050
Button("Solve Routes") {
5151
Task {
5252
do {
53-
routing = true
54-
defer { routing = false }
53+
isRouting = true
54+
defer { isRouting = false }
5555

5656
try await model.solveRoutes()
5757
routingIsDisabled = true

0 commit comments

Comments
 (0)