One Logo Pool Ball
Foundation · IOS API REFERENCE

AttributeScopes.FoundationAttributes.ReplacementIndexAttribute

enum · iOS 15.0+ · SDK 27.1

@frozen enum ReplacementIndexAttribute

A type for using a replacement index as an attribute. 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.

Members (1)

get · iOS 15.0+

name

TypeScript
static get nameValue(): string
Swift declaration
static let name: String

The name of the key.

Skipped declarations

No declarations were skipped in this snapshot.

All Foundation types →