<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "ProximityReader",
  "identifier" : "/documentation/ProximityReader/CustomerEngagement/ShoppingCart/Summary-swift.struct/LineItem/init(label:value:)-lf9",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "ProximityReader"
    ],
    "preciseIdentifier" : "s:15ProximityReader18CustomerEngagementO12ShoppingCartV7SummaryV8LineItemV5label5valueAISS_SStcfc"
  },
  "title" : "init(label:value:)"
}
-->

# init(label:value:)

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

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

## Discussion

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

---

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)