---
title: "init(_:value:)"
framework: swiftui
role: symbol
role_heading: Initializer
path: "swiftui/labeledcontent/init(_:value:)"
---

# init(_:value:)

Creates a labeled informational view.

## Declaration

```swift
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

Discussion This initializer creates a Text label on your behalf, and treats the title similar to init(_:). See Text for more information about localizing strings. Form {     ForEach(person.pet) { pet in         LabeledContent(pet.species, value: pet.name)     } }

## See Also

### Creating labeled content

- [init(_:content:)](swiftui/labeledcontent/init(_:content:).md)
- [init(content:label:)](swiftui/labeledcontent/init(content:label:).md)
- [init(_:value:format:)](swiftui/labeledcontent/init(_:value:format:).md)
- [init(_:)](swiftui/labeledcontent/init(_:).md)
