I’m using a custom view for Map annotation, basically is something like this:
Map(coordinateRegion: $region, annotationItems: [place]) { place in
MapAnnotation(coordinate: place.location) {
view(for: place)
.zIndex(place.state == .selected ? 100 : 1)
}
}
All the annotations are added and displayed propertly, however, I can not affect the zindex of the elements, since I want to bring to front the annotation that is selected. This was working on UIKit, but now is not. I have been serching and looks like is something common, does anyone has any workaround to solve this? Thanks in advance.