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

# init(_:value:format:)

Creates a labeled informational view from a formatted value.

## Declaration

```swift
init<F>(_ titleKey: LocalizedStringKey, value: F.FormatInput, format: F) where F : FormatStyle, F.FormatInput : Equatable, F.FormatOutput == String
```

## Parameters

- `titleKey`: The key for the view’s localized title, that describes the purpose of the view.
- `value`: The value being labeled.
- `format`: A format style of type F to convert the underlying value of type F.FormatInput to a string representation.

## Discussion

Discussion This initializer creates a Text label on your behalf, and treats the localized key similar to init(_:tableName:bundle:comment:). See Text for more information about localizing strings. Form {     LabeledContent("Age", value: person.age, format: .number)     LabeledContent("Height", value: person.height,         format: .measurement(width: .abbreviated)) }

## See Also

### Creating labeled content

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