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

# init(label:value:)

Creates a line item with a label and decimal value, formatted using the session currency and customer’s locale.

## Declaration

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

## Discussion

Discussion Localize the label to the customer’s locale. Format the decimal amount using the session currency and customer’s locale.
