<!--
{
  "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/LabeledContentStyle",
  "metadataVersion" : "0.1.0",
  "role" : "Protocol",
  "symbol" : {
    "kind" : "Protocol",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI19LabeledContentStyleP"
  },
  "title" : "LabeledContentStyle"
}
-->

# LabeledContentStyle

The appearance and behavior of a labeled content instance..

```
@MainActor @preconcurrency protocol LabeledContentStyle
```

## Overview

Use [`labeledContentStyle(_:)`](/documentation/SwiftUI/View/labeledContentStyle(_:)) to set a style on a view.

A type conforming to this protocol inherits `@preconcurrency @MainActor`
isolation from the protocol if the conformance is included in the type’s
base declaration:

```
struct MyCustomType: Transition {
    // `@preconcurrency @MainActor` isolation by default
}
```

Isolation to the main actor is the default, but it’s not required. Declare
the conformance in an extension to opt out of main actor isolation:

```
extension MyCustomType: Transition {
    // `nonisolated` by default
}
```

## Topics

### Getting built-in labeled content styles

[`automatic`](/documentation/SwiftUI/LabeledContentStyle/automatic)

A labeled content style that resolves its appearance automatically based
on the current context.

### Creating custom labeled content styles

[`makeBody(configuration:)`](/documentation/SwiftUI/LabeledContentStyle/makeBody(configuration:))

Creates a view that represents the body of labeled content.

[`Configuration`](/documentation/SwiftUI/LabeledContentStyle/Configuration)

The properties of a labeled content instance.

[`Body`](/documentation/SwiftUI/LabeledContentStyle/Body)

A view that represents the appearance and behavior of labeled content.

### Supporting types

[`AutomaticLabeledContentStyle`](/documentation/SwiftUI/AutomaticLabeledContentStyle)

The default labeled content style.

## Relationships

### Conforming Types

[`AutomaticLabeledContentStyle`](/documentation/SwiftUI/AutomaticLabeledContentStyle)

---

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)