<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: 16.0.0 -",
    "macOS: 13.0.0 -",
    "tvOS: 16.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 9.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/LabeledContent/init(_:value:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI14LabeledContentVA2A4TextVRszAERs_rlE_5valueACyA2EGqd___qd_0_tcSyRd__SyRd_0_r0_lufc::OverloadGroup"
  },
  "title" : "init(_:value:)"
}
-->

# init(_:value:)

Creates a labeled informational view.

```
init<S1, S2>(_ title: S1, value: S2) where S1 : StringProtocol, S2 : StringProtocol
```

## Parameters

`title`

A string that describes the purpose of the view.

`value`

The value being labeled.

## Discussion

This initializer creates a [`Text`](/documentation/SwiftUI/Text) label on your behalf, and treats the
title similar to [`init(_:)`](/documentation/SwiftUI/Text/init(_:)). See `Text` for more
information about localizing strings.

```
Form {
    ForEach(person.pet) { pet in
        LabeledContent(pet.species, value: pet.name)
    }
}
```

---

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)