I am using a mapkit element and want to see the preview. But, the preview option provided by Xcode is showing wrong color for map annotations.
For example, If I set annotation color as yellow, In preview I'm getting blue color.
Sample code:
Map(coordinateRegion: $region, annotationItems: locations, annotationContent: { item in
// a. Old style, always static
MapPin(coordinate: item.location, tint: .accentColor)
})
Note my accent color is: yellow.
Is there any solution to solve this preview bug?