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

# init(_:)

Creates labeled content based on a labeled content style configuration.

## Declaration

```swift
init(_ configuration: LabeledContentStyleConfiguration)
```

## Parameters

- `configuration`: The properties of the labeled content

## Discussion

Discussion You can use this initializer within the makeBody(configuration:) method of a LabeledContentStyle to create a labeled content instance. This is useful for custom styles that only modify the current style, as opposed to implementing a brand new style. For example, the following style adds a red border around the labeled content, but otherwise preserves the current style: struct RedBorderLabeledContentStyle: LabeledContentStyle {     func makeBody(configuration: Configuration) -> some View {         LabeledContent(configuration)             .border(.red)     } }

## 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(_:value:format:)](swiftui/labeledcontent/init(_:value:format:).md)
