<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -",
    "macCatalyst: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CarPlay",
  "identifier" : "/documentation/CarPlay/CPListImageRowItem/init(text:elements:allowsMultipleLines:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "CarPlay"
    ],
    "preciseIdentifier" : "c:objc(cs)CPListImageRowItem(im)initWithText:elements:allowsMultipleLines:"
  },
  "title" : "init(text:elements:allowsMultipleLines:)"
}
-->

# init(text:elements:allowsMultipleLines:)

Initialize a list image row item with a text string, an array of @c CPListImageRowItemRowElement and a boolean to allow multiple lines in this row.

```
init(text: String?, elements: [CPListImageRowItemRowElement], allowsMultipleLines: Bool)
```

## Parameters

`text`

The text visible at the top of the cell.

`elements`

The list of @c CPListImageRowItemRowElement  elements visible below the text.

`allowsMultipleLines`

Determines if the elements could be visible on more than a single line.

## Discussion

If a nil @c text property is provided the cell will resize accordingly to hide the title.

---

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)