<!--
{
  "availability" : [
    "iOS: 14.0.0 -",
    "iPadOS: 14.0.0 -",
    "macCatalyst: 14.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CarPlay",
  "identifier" : "/documentation/CarPlay/CPMapTemplate/showTripPreviews(_:selectedTrip:textConfiguration:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "CarPlay"
    ],
    "preciseIdentifier" : "c:objc(cs)CPMapTemplate(im)showTripPreviews:selectedTrip:textConfiguration:"
  },
  "title" : "showTripPreviews(_:selectedTrip:textConfiguration:)"
}
-->

# showTripPreviews(_:selectedTrip:textConfiguration:)

Displays the previews for a collection of trips, with a single selected trip.

```
func showTripPreviews(_ tripPreviews: [CPTrip], selectedTrip: CPTrip?, textConfiguration: CPTripPreviewTextConfiguration?)
```

## Parameters

`tripPreviews`

An array of trips to preview.

`selectedTrip`

The trip to select when CarPlay presents the list of trip previews.

`textConfiguration`

A configuration object that contains the various titles a trip preview button can display.

## Discussion

Use this method to display upcoming trips or multiple trip options, such as search results. Trip previews can appear over an active navigation session. Provide an array of up to twelve [`CPTrip`](/documentation/CarPlay/CPTrip) objects to preview. If the array contains more objects, CarPlay displays only the first twelve.

The trip you want to select must be a member of the `tripPreviews` array.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)