<!--
{
  "availability" : [
    "iOS: 12.0.0 - 14.0.0",
    "iPadOS: 12.0.0 - 14.0.0",
    "macCatalyst: 13.1.0 - 14.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "CarPlay",
  "identifier" : "/documentation/CarPlay/CPListItem/init(text:detailText:image:showsDisclosureIndicator:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "CarPlay"
    ],
    "preciseIdentifier" : "c:objc(cs)CPListItem(im)initWithText:detailText:image:showsDisclosureIndicator:"
  },
  "title" : "init(text:detailText:image:showsDisclosureIndicator:)"
}
-->

# init(text:detailText:image:showsDisclosureIndicator:)

Creates a list item with primary text, secondary text, an image, and a disclosure indicator.

```
init(text: String?, detailText: String?, image: UIImage?, showsDisclosureIndicator: Bool)
```

## Parameters

`text`

The primary text to show in the list item cell.

`detailText`

Additional text to display below the primary text in the list item cell.

`image`

The image to display on the leading edge of the list item cell. If the image is larger than `CPMaximumListItemImageSize`, the list item scales down the image to maximum size. If you provide an animated image, the list item uses the first image in the animation sequence.

`showsDisclosureIndicator`

A Boolean value that indicates whether the list item cell displays a disclosure indicator. Set to <doc://com.apple.documentation/documentation/Swift/true> to display the indicator on the trailing edge of the list item cell.

## Return Value

A newly initialized list item.

---

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)