Contents

AttributeScopes.FoundationAttributes.ReplacementIndexAttribute

A type for using a replacement index as an attribute.

Declaration

@frozen enum ReplacementIndexAttribute

Overview

When you use the applyReplacementIndexAttribute formatting option, the resulting formatted string uses this attribute to mark the location of replacement strings. This allows you to relate ranges to replacements even if localizers change the word order in format strings.

See Also

Using string formatting attributes