Skip to content

Commit 514747b

Browse files
author
Achyut Kumar M
committed
add hideElement to switch case
1 parent 1f6a62c commit 514747b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

GoInfoGame/GoInfoGame/UI/Map/MapView.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,9 @@ struct MapView: View {
182182
isSyncing = false
183183
print("synced")
184184
showAlert = true
185+
case .hideElement(let elementId):
186+
shouldShowPolyline = false
187+
viewModel.hideQuest(elementId: elementId)
185188
}
186189
}
187190
.onReceive(QuestsPublisher.shared.refreshQuest, perform: { _ in
@@ -218,6 +221,7 @@ public enum SheetDismissalScenario {
218221
case submitted(String)
219222
case syncing
220223
case synced
224+
case hideElement(String)
221225
}
222226

223227
//TODO: Move to a new file

0 commit comments

Comments
 (0)