Skip to content

EnumerationFoundationEssentials

AttributeScopes.FoundationAttributes.ReplacementIndexAttribute

iOS 15.0+ iPadOS 15.0+ Mac Catalyst 15.0+ macOS 12.0+ tvOS 15.0+ watchOS 8.0+
A type for using a replacement index as an attribute.
@frozen enum ReplacementIndexAttribute

Overview

When you use the AttributedString/FormattingOptions/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.

Topics

Type Aliases

Type Properties

Relationships

Conforms To