---
title: labelIconToTitleSpacing
framework: swiftui
role: symbol
role_heading: Instance Property
path: swiftui/environmentvalues/labelicontotitlespacing
---

# labelIconToTitleSpacing

The spacing between the icon and title of a label.

## Declaration

```swift
var labelIconToTitleSpacing: CGFloat? { get }
```

## Discussion

Discussion The value that should be used for the icon-to-title spacing in labels. To set a different value for labels, use the labelIconToTitleSpacing modifier. This environment value can be used in custom label styles to allow changing the icon-to-title spacing using the labelIconToTitleSpacing modifier. If the value is nil, a default value should be used instead.
