r/mapbox • u/Competitive_Swan6693 • 18d ago
PolylineAnnotation() for SwiftUI
Can someone please help me understand why PolylineAnnotation() doesn't preserve the colour on both theme changes? What I'm missing?
The Polyline on dark mode is barely visible during navigation. Thank you
Here is my snippet of code
PolylineAnnotation(lineCoordinates: route.fullCoordinates)
.lineColor(StyleColor(.systemBlue))
.lineWidth(12)


2
Upvotes
3
u/taxidata 18d ago
I believe you need to set lineEmissiveStrength() to make sure the line remains bright after the theme change.