---
title: "labelReservedIconWidth(_:)"
framework: swiftui
role: symbol
role_heading: Instance Method
path: "swiftui/view/labelreservediconwidth(_:)"
---

# labelReservedIconWidth(_:)

Set the width reserved for icons in labels.

## Declaration

```swift
nonisolated func labelReservedIconWidth(_ value: CGFloat) -> some View

```

## Discussion

Discussion Use this modifier to set the value that should be used for the reserved icon width in labels. This applies to label styles and in contexts where the label displays its icon and title stacked horizontally.

## See Also

### Label configuration

- [labelIconToTitleSpacing(_:)](swiftui/view/labelicontotitlespacing(_:).md)
