We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 78782aa commit 6bbde07Copy full SHA for 6bbde07
GoInfoGame/GoInfoGame/UI/Map/CustomMap.swift
@@ -153,8 +153,8 @@ struct CustomMap: UIViewRepresentable {
153
if let annotation = annotation as? MKClusterAnnotation {
154
let displayAnnotation = annotation.memberAnnotations.first as! DisplayUnitAnnotation
155
selectedAnAnnotation(selectedQuest: displayAnnotation)
156
- } else {
157
- selectedAnAnnotation(selectedQuest: annotation as! DisplayUnitAnnotation)
+ } else if let annotation = annotation as? DisplayUnitAnnotation {
+ selectedAnAnnotation(selectedQuest: annotation)
158
}
159
160
// Deselect the annotation to prevent re-adding on selection
0 commit comments