Yes, just what I was looking for. Thank you. Question about this, I have a CPMapButton and added an accessiblityLabel but it does not seem to tap the button when I say "tap current location":
lazy var currentLocationButton: CPMapButton = {
let recenterButton = CPMapButton { [weak self] button in
guard let self = self else { return }
if let mapView = self.mapViewController?.mapView {
mapView.setUserTrackingMode(.followWithCourse, animated: true, completionHandler: nil)
}
}
recenterButton.accessibilityLabel = NSLocalizedString("Current Location", comment: "CarPlay: Current Location Button accessiblity")
recenterButton.accessibilityHint = NSLocalizedString("Show the users current location on the map", comment: "CarPlay: Show current user location on the map")
let bundle = Bundle.main
recenterButton.image = UIImage(named: "carplay_locate", in: bundle, compatibleWith: traitCollection)
return recenterButton
}()