Contents

labelReservedIconWidth

The width reserved for icons in labels.

Declaration

var labelReservedIconWidth: CGFloat? { get }

Discussion

The value that should be used for the reserved icon width in labels. To set a different value for labels, use the labelReservedIconWidth modifier.

This environment value can be used in custom label styles to allow changing the reserved icon width using the labelReservedIconWidth modifier. If the value is nil, a default behavior to size the icon should be used instead.