---
title: "Label Icon To Title Spacing | Explore SwiftUI"
description: "Set the spacing between the icon and title in labels. Learn how to use Label Icon To Title Spacing in SwiftUI with visual code examples."
canonical_url: "https://exploreswiftui.com/library/label/label-icon-to-title-spacing"
meta:
  author: "Explore SwiftUI"
  "og:description": "Set the spacing between the icon and title in labels. Learn how to use Label Icon To Title Spacing in SwiftUI with visual code examples."
  "og:image": "https://exploreswiftui.com/_og/d/c_Component%2Ctitle_Label%2BIcon%2BTo%2BTitle%2BSpacing%2Cdescription_Set%2Bthe%2Bspacing%2Bbetween%2Bthe%2Bicon%2Band%2Btitle%2Bin%2Blabels.%2Ccategory_Label%2Cimage_~L2FwaS9pbWFnZXMvMjc0L3ZhcmlhbnRzLzI0Njc~dj0xNzk1MjY4MzkzODgwJnI9MiZ3PTEyODAmcT04NSZmPWpwZWc%2CimageMode_crop%2CimagePosition_center%2CimageFrame_~cG9zaXRpb246IGFic29sdXRlOyByaWdodDogMDsgd2lkdGg6IDY0MHB4OyBoZWlnaHQ6IDQ4MHB4OyBkaXNwbGF5OiBmbGV4OyBvdmVyZmxvdzogaGlkZGVuOyBiYWNrZ3JvdW5kOiAjRkZGRkZGOyBib3gtc2hhZG93OiAwIC0xMHB4IDUwcHggcmdiYSgzNyw5OSwyMzUsMC4xOCk7IGJvcmRlci1sZWZ0OiAxcHggc29saWQgcmdiYSgwLDAsMCwwLjA2KTsgdG9wOiA3NXB4OyBib3JkZXItdG9wOiAxcHggc29saWQgcmdiYSgwLDAsMCwwLjA2KTsgYm9yZGVyLWJvdHRvbTogMXB4IHNvbGlkIHJnYmEoMCwwLDAsMC4wNik7IGJvcmRlci10b3AtbGVmdC1yYWRpdXM6IDMycHg7IGJvcmRlci1ib3R0b20tbGVmdC1yYWRpdXM6IDMycHg7%2Cprops_eyJwbGF0Zm9ybXMiOlsiaU9TIiwiaVBhZE9TIiwibWFjT1MiLCJ3YXRjaE9TIiwidHZPUyIsInZpc2lvbk9TIl19%2Cp_Ii9saWJyYXJ5L2xhYmVsL2xhYmVsLWljb24tdG8tdGl0bGUtc3BhY2luZyI%2Cs_Girq1bWzDme68-ji.png"
  "og:image:height": "630"
  "og:image:type": image/png
  "og:image:width": "1200"
  "og:title": "Label Icon To Title Spacing | Explore SwiftUI"
  "twitter:description": "Set the spacing between the icon and title in labels. Learn how to use Label Icon To Title Spacing in SwiftUI with visual code examples."
  "twitter:image": "https://exploreswiftui.com/_og/d/c_Component%2Ctitle_Label%2BIcon%2BTo%2BTitle%2BSpacing%2Cdescription_Set%2Bthe%2Bspacing%2Bbetween%2Bthe%2Bicon%2Band%2Btitle%2Bin%2Blabels.%2Ccategory_Label%2Cimage_~L2FwaS9pbWFnZXMvMjc0L3ZhcmlhbnRzLzI0Njc~dj0xNzk1MjY4MzkzODgwJnI9MiZ3PTEyODAmcT04NSZmPWpwZWc%2CimageMode_crop%2CimagePosition_center%2CimageFrame_~cG9zaXRpb246IGFic29sdXRlOyByaWdodDogMDsgd2lkdGg6IDY0MHB4OyBoZWlnaHQ6IDQ4MHB4OyBkaXNwbGF5OiBmbGV4OyBvdmVyZmxvdzogaGlkZGVuOyBiYWNrZ3JvdW5kOiAjRkZGRkZGOyBib3gtc2hhZG93OiAwIC0xMHB4IDUwcHggcmdiYSgzNyw5OSwyMzUsMC4xOCk7IGJvcmRlci1sZWZ0OiAxcHggc29saWQgcmdiYSgwLDAsMCwwLjA2KTsgdG9wOiA3NXB4OyBib3JkZXItdG9wOiAxcHggc29saWQgcmdiYSgwLDAsMCwwLjA2KTsgYm9yZGVyLWJvdHRvbTogMXB4IHNvbGlkIHJnYmEoMCwwLDAsMC4wNik7IGJvcmRlci10b3AtbGVmdC1yYWRpdXM6IDMycHg7IGJvcmRlci1ib3R0b20tbGVmdC1yYWRpdXM6IDMycHg7%2Cprops_eyJwbGF0Zm9ybXMiOlsiaU9TIiwiaVBhZE9TIiwibWFjT1MiLCJ3YXRjaE9TIiwidHZPUyIsInZpc2lvbk9TIl19%2Cp_Ii9saWJyYXJ5L2xhYmVsL2xhYmVsLWljb24tdG8tdGl0bGUtc3BhY2luZyI%2Cs_Girq1bWzDme68-ji.png"
  "twitter:title": "Label Icon To Title Spacing | Explore SwiftUI"
---

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

**Interactive previews**[ iPhone](https://exploreswiftui.com/iphone?element=274)

# **Label Icon To Title Spacing**

Set the spacing between the icon and title in labels.

![Label Icon To Title Spacing - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview](https://exploreswiftui.com/api/images/274/variants/2467?v=1795268393880&r=2&w=800&q=80&f=webp)

### **Platform Compatibility**

iOS 26.0+ iPadOS 26.0+ macOS 26.0+ watchOS 26.0+ tvOS 26.0+ visionOS 26.0+

### **Tags**

### **SwiftUI Code**

[ Docs](<https://developer.apple.com/documentation/swiftui/view/labelicontotitlespacing(_:)>)

```
Label("Foo", systemImage: "water.waves")
    .labelIconToTitleSpacing(0)
Label("Foo", systemImage: "water.waves")
Label("Foo", systemImage: "water.waves")
    .labelIconToTitleSpacing(16)
```

### **Found an issue or have a suggestion?**

Created: November 21, 2026Updated: November 21, 2026

### **More Label Components **

[**View all **](https://exploreswiftui.com/library/label)

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

### **Label Styles**

Sets the style for labels within this view.

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

### **Custom Label**

Creates a label with a custom title and icon.

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

### **Image Label**

Creates a label with an icon image and a title generated from a localized string.

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

### **System Image Label**

Creates a label with a system icon image and a title generated from a localized string.

### **Explore Other Components **

[**Browse all **](https://exploreswiftui.com/)

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

### **Menu Action Button**

Acts like a button and opens the menu on a secondary gesture

![Refreshable List - iOS on iPhone - Portrait - Flat Design - Light Mode - Preview](https://exploreswiftui.com/api/images/126/variants/359?v=1790073478842&r=2&w=412&q=75&f=webp)

### **Refreshable List**

Marks this view as refreshable.

![BorderedListStyle - macOS - Flat Design - Light Mode - Preview](https://exploreswiftui.com/api/images/101/variants/308?v=1790073478842&r=2&w=412&q=75&f=webp)

### **BorderedListStyle**

The list style that describes the behavior and appearance of a list with standard border.

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

### **DatePicker Colors**

Customizing the colors of the date picker

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

### **Toolbar Overflow Menu**

The overflow menu of a toolbar. An overflow menu represents actions that are always placed in the toolbar’s overflow menu, regardless of the toolbar mode, platform, or customizability.

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

### **Button**

Three ways to initialize a button

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

### **Menu Fixed Order**

Order items from top to bottom

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

### **Button Sizing**

The preferred sizing behavior of buttons in the view hierarchy.

```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/label/label-icon-to-title-spacing#webpage","@type":"WebPage","dateModified":"2026-11-21T13:39:53.895Z","datePublished":"2026-11-21T13:39:14.780Z","description":"Set the spacing between the icon and title in labels. Learn how to use Label Icon To Title Spacing in SwiftUI with visual code examples.","name":"Label Icon To Title Spacing","url":"https://exploreswiftui.com/library/label/label-icon-to-title-spacing","breadcrumb":{"@id":"https://exploreswiftui.com/library/label/label-icon-to-title-spacing#breadcrumb"},"isPartOf":{"@id":"https://exploreswiftui.com/#website"},"mainEntity":{"@id":"https://exploreswiftui.com/library/label/label-icon-to-title-spacing#article"},"potentialAction":[{"@type":"ReadAction","target":["https://exploreswiftui.com/library/label/label-icon-to-title-spacing"]}],"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/label/label-icon-to-title-spacing#article","citation":"https://developer.apple.com/documentation/swiftui/view/labelicontotitlespacing(_:)","dateModified":"2026-11-21T13:39:53.895Z","datePublished":"2026-11-21T13:39:14.780Z","description":"Set the spacing between the icon and title in labels. Learn how to use Label Icon To Title Spacing in SwiftUI with visual code examples.","headline":"Label Icon To Title Spacing","inLanguage":"en-US","name":"Label Icon To Title Spacing","thumbnailUrl":"https://exploreswiftui.com/api/images/274/variants/2467?v=1795268393880&r=2","url":"https://exploreswiftui.com/library/label/label-icon-to-title-spacing","@type":["Article","TechArticle"],"about":{"@type":"Thing","name":"SwiftUI"},"author":{"@id":"https://exploreswiftui.com/#identity"},"hasPart":{"@id":"https://exploreswiftui.com/library/label/label-icon-to-title-spacing#source-code"},"image":{"@id":"https://exploreswiftui.com/#/schema/image/1"},"isPartOf":{"@id":"https://exploreswiftui.com/library/label/label-icon-to-title-spacing#webpage"},"mainEntityOfPage":{"@id":"https://exploreswiftui.com/library/label/label-icon-to-title-spacing#webpage"},"publisher":{"@id":"https://exploreswiftui.com/#identity"}},{"@id":"https://exploreswiftui.com/library/label/label-icon-to-title-spacing#source-code","@type":"SoftwareSourceCode","codeSampleType":"full example","description":"Set the spacing between the icon and title in labels. Learn how to use Label Icon To Title Spacing in SwiftUI with visual code examples.","name":"Label Icon To Title Spacing SwiftUI Example","programmingLanguage":"Swift","runtimePlatform":"SwiftUI","text":"Label(\"Foo\", systemImage: \"water.waves\")\n    .labelIconToTitleSpacing(0)\nLabel(\"Foo\", systemImage: \"water.waves\")\nLabel(\"Foo\", systemImage: \"water.waves\")\n    .labelIconToTitleSpacing(16)","about":[{"@type":"Thing","name":"SwiftUI"},{"@type":"Thing","name":"Label"},{"@type":"Thing","name":"Label Icon To Title Spacing"}]},{"@id":"https://exploreswiftui.com/library/label/label-icon-to-title-spacing#breadcrumb","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","name":"Home","item":"https://exploreswiftui.com","position":1},{"@type":"ListItem","name":"Label","item":"https://exploreswiftui.com/library/label","position":2},{"@type":"ListItem","name":"Label Icon To Title Spacing","item":"https://exploreswiftui.com/library/label/label-icon-to-title-spacing","position":3}]},{"@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"},{"@id":"https://exploreswiftui.com/#/schema/image/1","@type":"ImageObject","contentUrl":"https://exploreswiftui.com/api/images/274/variants/2467?v=1795268393880&r=2","inLanguage":"en","url":"https://exploreswiftui.com/api/images/274/variants/2467?v=1795268393880&r=2"}]}
```