Skip to content

Pins are flickering when leaving the safeArea during drag gesture #2386

@Bathilde

Description

@Bathilde

Environment

  • Xcode version: 26.0
  • iOS version: 18.6 and 26
  • Maps SDK Version: 11.6.1

Observed behavior and steps to reproduce

Context: on the map there are two pins with multiple possible anchors.

When I reach the end of the safe area, during the drag gesture, the pins are flickering.

For context, this is how the map pins are initialised.

MapViewAnnotation(coordinate: coordinate) {
       MyView(anchor: anchor)
}
  .allowOverlap(false)
  .ignoreCameraPadding(true)
  .variableAnchors([
        ViewAnnotationAnchorConfig(anchor: .bottomLeft),
        ViewAnnotationAnchorConfig(anchor: .bottomRight),
        ViewAnnotationAnchorConfig(anchor: .topLeft),
        ViewAnnotationAnchorConfig(anchor: .topRight)
    ])
  .onAnchorChanged { config in
    onAnchorChanged(config.anchor)
   }

Would it be possible to add a delay to update the pins during the drag gestures?

Screen.Recording.2025-11-28.at.12.55.35.mov

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug 🪲Something is broken!

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions