SwiftUI MapKit

MapKit offers showsTraffic: Bool, which is great for displaying live traffic data on the map. However, MapPolyline sits above it, which makes it quite useless. Is this the expected behaviour?

Use the .map​Overlay​Level(level:) modifier on your Map​Content to position polylines relative to other map elements. Setting .above​Roads places polylines above roads but below labels and traffic, keeping traffic data visible. Setting .above​Labels places them above everything including traffic.

SwiftUI MapKit
 
 
Q