---
title: "Label Reserved Icon Width | Explore SwiftUI"
description: "Set the width reserved for icons in labels. Learn how to use Label Reserved Icon Width in SwiftUI with visual code examples."
canonical_url: "https://exploreswiftui.com/library/label/label-reserved-icon-width"
meta:
  author: "Explore SwiftUI"
  "og:description": "Set the width reserved for icons in labels. Learn how to use Label Reserved Icon Width in SwiftUI with visual code examples."
  "og:image": "https://exploreswiftui.com/_og/d/c_Component%2Ctitle_Label%2BReserved%2BIcon%2BWidth%2Cdescription_Set%2Bthe%2Bwidth%2Breserved%2Bfor%2Bicons%2Bin%2Blabels.%2Ccategory_Label%2Cimage_~L2FwaS9pbWFnZXMvMjc4L3ZhcmlhbnRzLzMzMTg~dj0xNzk2MzE3OTQxMTMxJnI9MiZ3PTEyODAmcT04NSZmPWpwZWc%2CimageMode_crop%2CimagePosition_center%2CimageFrame_~cG9zaXRpb246IGFic29sdXRlOyByaWdodDogMDsgd2lkdGg6IDY0MHB4OyBoZWlnaHQ6IDQ4MHB4OyBkaXNwbGF5OiBmbGV4OyBvdmVyZmxvdzogaGlkZGVuOyBiYWNrZ3JvdW5kOiAjRkZGRkZGOyBib3gtc2hhZG93OiAwIC0xMHB4IDUwcHggcmdiYSgzNyw5OSwyMzUsMC4xOCk7IGJvcmRlci1sZWZ0OiAxcHggc29saWQgcmdiYSgwLDAsMCwwLjA2KTsgdG9wOiA3NXB4OyBib3JkZXItdG9wOiAxcHggc29saWQgcmdiYSgwLDAsMCwwLjA2KTsgYm9yZGVyLWJvdHRvbTogMXB4IHNvbGlkIHJnYmEoMCwwLDAsMC4wNik7IGJvcmRlci10b3AtbGVmdC1yYWRpdXM6IDMycHg7IGJvcmRlci1ib3R0b20tbGVmdC1yYWRpdXM6IDMycHg7%2Cprops_eyJwbGF0Zm9ybXMiOltdfQ%2Cp_Ii9saWJyYXJ5L2xhYmVsL2xhYmVsLXJlc2VydmVkLWljb24td2lkdGgi%2Cs_KM4WluD2rAJKQyjC.png"
  "og:image:height": "630"
  "og:image:type": image/png
  "og:image:width": "1200"
  "og:title": "Label Reserved Icon Width | Explore SwiftUI"
  "twitter:description": "Set the width reserved for icons in labels. Learn how to use Label Reserved Icon Width in SwiftUI with visual code examples."
  "twitter:image": "https://exploreswiftui.com/_og/d/c_Component%2Ctitle_Label%2BReserved%2BIcon%2BWidth%2Cdescription_Set%2Bthe%2Bwidth%2Breserved%2Bfor%2Bicons%2Bin%2Blabels.%2Ccategory_Label%2Cimage_~L2FwaS9pbWFnZXMvMjc4L3ZhcmlhbnRzLzMzMTg~dj0xNzk2MzE3OTQxMTMxJnI9MiZ3PTEyODAmcT04NSZmPWpwZWc%2CimageMode_crop%2CimagePosition_center%2CimageFrame_~cG9zaXRpb246IGFic29sdXRlOyByaWdodDogMDsgd2lkdGg6IDY0MHB4OyBoZWlnaHQ6IDQ4MHB4OyBkaXNwbGF5OiBmbGV4OyBvdmVyZmxvdzogaGlkZGVuOyBiYWNrZ3JvdW5kOiAjRkZGRkZGOyBib3gtc2hhZG93OiAwIC0xMHB4IDUwcHggcmdiYSgzNyw5OSwyMzUsMC4xOCk7IGJvcmRlci1sZWZ0OiAxcHggc29saWQgcmdiYSgwLDAsMCwwLjA2KTsgdG9wOiA3NXB4OyBib3JkZXItdG9wOiAxcHggc29saWQgcmdiYSgwLDAsMCwwLjA2KTsgYm9yZGVyLWJvdHRvbTogMXB4IHNvbGlkIHJnYmEoMCwwLDAsMC4wNik7IGJvcmRlci10b3AtbGVmdC1yYWRpdXM6IDMycHg7IGJvcmRlci1ib3R0b20tbGVmdC1yYWRpdXM6IDMycHg7%2Cprops_eyJwbGF0Zm9ybXMiOltdfQ%2Cp_Ii9saWJyYXJ5L2xhYmVsL2xhYmVsLXJlc2VydmVkLWljb24td2lkdGgi%2Cs_KM4WluD2rAJKQyjC.png"
  "twitter:title": "Label Reserved Icon Width | Explore SwiftUI"
---

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

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

# **Label Reserved Icon Width**

Set the width reserved for icons in labels.

![Label Reserved Icon Width - iOS on iPhone - Portrait - Liquid Glass - Light Mode - Preview](https://exploreswiftui.com/api/images/278/variants/3318?v=1796317941131&r=2&w=800&q=80&f=webp)

### **Platform Compatibility**

### **Tags**

[**modifier**](https://exploreswiftui.com/?search=modifier "Search for modifier (opens in a new tab)") [**labelreservediconwidth**](https://exploreswiftui.com/?search=labelreservediconwidth "Search for labelreservediconwidth (opens in a new tab)")

### **SwiftUI Code**

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

```
VStack {
    Button("Bar", systemImage: "plus") {}
    Button("Foo", systemImage: "arrowshape.left.arrowshape.right") {}
    Button("Bar", systemImage: "plus") {}
        .labelReservedIconWidth(37)
}
```

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

Created: December 1, 2026Updated: December 3, 2026

### **More Label Components **

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

![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=412&q=75&f=webp)

### **Label Icon To Title Spacing**

Set the spacing between the icon and title in labels.

![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/)

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

### **ProgressView**

The different ProgressView initializers

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

### **LinearProgressViewStyle**

A progress view that visually indicates its progress using a horizontal bar

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

### **Button Styles**

A type that applies standard interaction behavior and a custom appearance to all buttons within a view hierarchy

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

### **Pinned Toolbar Item Placement**

A placement that pins the item to the trailing edge of the toolbar.

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

### **CircularProgressViewStyle**

The style of a progress view that uses a circular gauge to indicate the partial completion of an activity

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

### **Nested Menu**

A Menu inside a Menu

![Overlay Arrangement Style - iOS on iPhone Duo - Landscape - Fully Open - Liquid Glass - Light Mode - Preview](https://exploreswiftui.com/api/images/250/variants/1777?v=1790584733410&r=2&w=412&q=75&f=webp)

### **Overlay Arrangement Style**

An arrangement view style that layers the primary view over the secondary view in z-order.

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

### **Menu**

A control for presenting a menu of actions.

```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-reserved-icon-width#webpage","@type":"WebPage","dateModified":"2026-12-03T17:12:21.131Z","datePublished":"2026-12-01T17:08:00.000Z","description":"Set the width reserved for icons in labels. Learn how to use Label Reserved Icon Width in SwiftUI with visual code examples.","name":"Label Reserved Icon Width","url":"https://exploreswiftui.com/library/label/label-reserved-icon-width","breadcrumb":{"@id":"https://exploreswiftui.com/library/label/label-reserved-icon-width#breadcrumb"},"isPartOf":{"@id":"https://exploreswiftui.com/#website"},"mainEntity":{"@id":"https://exploreswiftui.com/library/label/label-reserved-icon-width#article"},"potentialAction":[{"@type":"ReadAction","target":["https://exploreswiftui.com/library/label/label-reserved-icon-width"]}],"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-reserved-icon-width#article","citation":"https://developer.apple.com/documentation/swiftui/view/labelreservediconwidth(_:)","dateModified":"2026-12-03T17:12:21.131Z","datePublished":"2026-12-01T17:08:00.000Z","description":"Set the width reserved for icons in labels. Learn how to use Label Reserved Icon Width in SwiftUI with visual code examples.","headline":"Label Reserved Icon Width","inLanguage":"en-US","name":"Label Reserved Icon Width","thumbnailUrl":"https://exploreswiftui.com/api/images/278/variants/3318?v=1796317941131&r=2","url":"https://exploreswiftui.com/library/label/label-reserved-icon-width","@type":["Article","TechArticle"],"about":{"@type":"Thing","name":"SwiftUI"},"author":{"@id":"https://exploreswiftui.com/#identity"},"hasPart":{"@id":"https://exploreswiftui.com/library/label/label-reserved-icon-width#source-code"},"image":{"@id":"https://exploreswiftui.com/library/label/label-reserved-icon-width#/schema/image/1"},"isPartOf":{"@id":"https://exploreswiftui.com/library/label/label-reserved-icon-width#webpage"},"mainEntityOfPage":{"@id":"https://exploreswiftui.com/library/label/label-reserved-icon-width#webpage"},"publisher":{"@id":"https://exploreswiftui.com/#identity"}},{"@id":"https://exploreswiftui.com/library/label/label-reserved-icon-width#source-code","@type":"SoftwareSourceCode","codeSampleType":"full example","description":"Set the width reserved for icons in labels. Learn how to use Label Reserved Icon Width in SwiftUI with visual code examples.","name":"Label Reserved Icon Width SwiftUI Example","programmingLanguage":"Swift","runtimePlatform":"SwiftUI","text":"VStack {\n    Button(\"Bar\", systemImage: \"plus\") {}\n    Button(\"Foo\", systemImage: \"arrowshape.left.arrowshape.right\") {}\n    Button(\"Bar\", systemImage: \"plus\") {}\n        .labelReservedIconWidth(37)\n}","about":[{"@type":"Thing","name":"SwiftUI"},{"@type":"Thing","name":"Label"},{"@type":"Thing","name":"Label Reserved Icon Width"}]},{"@id":"https://exploreswiftui.com/library/label/label-reserved-icon-width#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 Reserved Icon Width","item":"https://exploreswiftui.com/library/label/label-reserved-icon-width","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/library/label/label-reserved-icon-width#/schema/image/1","@type":"ImageObject","contentUrl":"https://exploreswiftui.com/api/images/278/variants/3318?v=1796317941131&r=2","inLanguage":"en","url":"https://exploreswiftui.com/api/images/278/variants/3318?v=1796317941131&r=2"}]}
```