---
title: "LabeledContent Components | Explore SwiftUI"
description: "A container for attaching a label to a value-bearing view. Explore 3 SwiftUI labeledcontent components with visual code examples."
canonical_url: "https://exploreswiftui.com/library/labeledcontent"
meta:
  author: "Explore SwiftUI"
  "og:description": "A container for attaching a label to a value-bearing view. Explore 3 SwiftUI labeledcontent components with visual code examples."
  "og:image": "https://exploreswiftui.com/_og/d/c_Default%2Ctitle_LabeledContent%2BComponents%2Cdescription_Explore%2B3%2BSwiftUI%2Bcomponents%2Bvisually%2Cp_Ii9saWJyYXJ5L2xhYmVsZWRjb250ZW50Ig%2Cs_QiM_hGLjS2JZ30sM.png"
  "og:image:height": "630"
  "og:image:type": image/png
  "og:image:width": "1200"
  "og:title": "LabeledContent Components | Explore SwiftUI"
  "twitter:description": "A container for attaching a label to a value-bearing view. Explore 3 SwiftUI labeledcontent components with visual code examples."
  "twitter:image": "https://exploreswiftui.com/_og/d/c_Default%2Ctitle_LabeledContent%2BComponents%2Cdescription_Explore%2B3%2BSwiftUI%2Bcomponents%2Bvisually%2Cp_Ii9saWJyYXJ5L2xhYmVsZWRjb250ZW50Ig%2Cs_QiM_hGLjS2JZ30sM.png"
  "twitter:title": "LabeledContent Components | Explore SwiftUI"
---

> Index of every page on this site: [llms.txt](https://exploreswiftui.com/llms.txt)

# **LabeledContent Components**

A container for attaching a label to a value-bearing view.

3 components

![Custom Labeled Content - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview](https://exploreswiftui.com/api/images/152/variants/494?v=1790073478842&r=2&w=412&q=75&f=webp)

### **Custom Labeled Content**

Creates a standard labeled element, with a view that conveys the value of the element and a label.

![Formatted Labeled Content - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview](https://exploreswiftui.com/api/images/151/variants/490?v=1790073478842&r=2&w=412&q=75&f=webp)

### **Formatted Labeled Content**

Creates a labeled informational view from a formatted value.

![Labeled Content - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview](https://exploreswiftui.com/api/images/150/variants/492?v=1790073478842&r=2&w=412&q=75&f=webp)

### **Labeled Content**

Creates a labeled informational view.

```json
{"@context":"https://schema.org","@graph":[{"@id":"https://exploreswiftui.com/#website","@type":"WebSite","description":"A visual library for SwiftUI APIs, components, and modifiers","inLanguage":"en-US","name":"Explore SwiftUI","url":"https://exploreswiftui.com/","publisher":{"@id":"https://exploreswiftui.com/#identity"}},{"@id":"https://exploreswiftui.com/library/labeledcontent#webpage","description":"A container for attaching a label to a value-bearing view. Explore 3 SwiftUI labeledcontent components with visual code examples.","inLanguage":"en-US","name":"LabeledContent Components","url":"https://exploreswiftui.com/library/labeledcontent","@type":["WebPage","CollectionPage"],"about":{"@id":"https://developer.apple.com/documentation/swiftui"},"breadcrumb":{"@id":"https://exploreswiftui.com/library/labeledcontent#breadcrumb"},"isPartOf":{"@id":"https://exploreswiftui.com/#website"},"mainEntity":{"@id":"https://exploreswiftui.com/library/labeledcontent#itemlist"},"potentialAction":[{"@type":"ReadAction","target":["https://exploreswiftui.com/library/labeledcontent"]}],"primaryImageOfPage":{"@id":"https://exploreswiftui.com/#logo"}},{"@id":"https://exploreswiftui.com/#identity","@type":"Organization","description":"A visual library for SwiftUI APIs, components, and modifiers","name":"Explore SwiftUI","url":"https://exploreswiftui.com","logo":{"@id":"https://exploreswiftui.com/#logo"},"sameAs":["https://x.com/Typ0genius","https://mastodon.social/@Typ0genius"]},{"@id":"https://exploreswiftui.com/library/labeledcontent#itemlist","@type":"ItemList","name":"LabeledContent Components","numberOfItems":3,"itemListElement":[{"@type":"ListItem","position":1,"name":"Custom Labeled Content","url":"https://exploreswiftui.com/library/labeledcontent/custom-labeled-content"},{"@type":"ListItem","position":2,"name":"Formatted Labeled Content","url":"https://exploreswiftui.com/library/labeledcontent/formatted-labeled-content"},{"@type":"ListItem","position":3,"name":"Labeled Content","url":"https://exploreswiftui.com/library/labeledcontent/labeled-content"}]},{"@id":"https://exploreswiftui.com/library/labeledcontent#breadcrumb","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","name":"Home","item":"https://exploreswiftui.com","position":1},{"@type":"ListItem","name":"LabeledContent","item":"https://exploreswiftui.com/library/labeledcontent","position":2}]},{"@id":"https://exploreswiftui.com/#logo","@type":"ImageObject","caption":"Explore SwiftUI","contentUrl":"https://exploreswiftui.com/apple-touch-icon.png","inLanguage":"en","url":"https://exploreswiftui.com/apple-touch-icon.png"}]}
```