MapKit Not Updating MapContentBuilder after each mapCameraKeyframeAnimator keyframe

Hello Apple support,

I have this following code

Map(position: $mCam, selection: $lastSelection) {
   // Display content conditionally based on camera scope.    
   // ^^^ works with user gesture, does not work with mapCameraKeyframeAnimator
}
.onMapCameraChange(frequency: .continuous , { context in
   // save the camera scope
})
.mapCameraKeyframeAnimator(trigger: self.trigger, keyframes: { camera in
   // frames
})

Context:

  • when logging, the .onMapCameraChange is updating. The content mapContentBuilder is running. But the content is NOT showing up on the map.
  • MapCircle, MapPolyline does not show! however, Marker works just fine

Question:

  • Anyone know How to indicate to MapKit Map view to draw the content?
  • Or how to have a slight "break" between animation keyframes, so map can catch up.

Can you post a complete code block or a link to a full test project that demonstrates your question, so that I can see your code and the same visual results that you are inquiring about?

— Ed Ford,  DTS Engineer

For some reason I can't extract the issue into a sample project. Thank you for your reply, I will regroup.

MapKit Not Updating MapContentBuilder after each mapCameraKeyframeAnimator keyframe
 
 
Q