---
title: "init(label:value:)"
framework: proximityreader
role: symbol
role_heading: Initializer
path: "proximityreader/customerengagement/shoppingcart/summary-swift.struct/lineitem/init(label:value:)-lf9"
---

# init(label:value:)

Creates a line item with the given label and string value.

## Declaration

```swift
init(label: String, value: String)
```

## Discussion

Discussion Localize the label and value to the customer’s locale.
