MKmapView Overlay drawing shows color patches iOS 10
<p><a href="https://i.stack.imgur.com/8ZKTo.png"><img src="https://i.stack.imgur.com/8ZKTo.png" alt="enter image description here"></a></p>

<p>I am drawing MKPolyLine over MKMapView. Before iOS 10 is was working fine. In iOS 10 its showing color patches other than routes.</p>

<pre><code> - (MKOverlayRenderer *)mapView:(MKMapView *)mapView rendererForOverlay:(id&lt;MKOverlay&gt;)overlay
 {
 [![enter image description here][1]][1]if ([overlay isKindOfClass:[MKPolyline class]]) {
    MKPolyline *route = overlay;
    @try {

        MKPolylineRenderer *routeRenderer = [[MKPolylineRenderer alloc] initWithPolyline:route];
        routeRenderer.strokeColor = [UIColor colorWithRed:20/255.0 green:153/255.0 blue:255/255.0 alpha:1.0];
        routeRenderer.lineWidth = 3;
        [routeRenderer setNeedsDisplay];
        return routeRenderer;
    }
    @catch (NSException *exception) {
        NSLog(@"exception :%@",exception.debugDescription);
    }

}
else return nil;
}
</code></pre>