---
title: "mapTemplate(_:didUpdateRouteSharingEnabled:)"
framework: CarPlay
role: symbol
role_heading: Instance Method
platforms: [iOS 27.0+, iPadOS 27.0+, Mac Catalyst 27.0+]
path: "carplay/cpmaptemplatedelegate/maptemplate(_:didupdateroutesharingenabled:)"
---

# mapTemplate(_:didUpdateRouteSharingEnabled:)

Called when the route sharing enabled status has been updated by the built-in system. Route sharing enabled is set to true when any vehicle features are enabled that rely on a route provided by the built‑in navigation system to func‑ tion.

## Declaration

```swift
optional func mapTemplate(_ mapTemplate: CPMapTemplate, didUpdateRouteSharingEnabled enabled: Bool)
```
