One Logo Pool Ball
Foundation · IOS API REFERENCE

AttributeScopes.FoundationAttributes.LocalizedStringArgumentAttributes

struct · iOS 16.0+ · SDK 27.1

struct LocalizedStringArgumentAttributes

A type for using a localized string argument as an attribute. You use the this scope's attributes when creating an attributed string from a ``LocalizedStringResource``. The process creating the attributed string may not have access to the original arguments passed to the interpolation. Instead, the attributed string marks formatted runs with this type, allowing you to retrieve the original values.

Members (4)

get · iOS 16.0+

localizedDateArgument

TypeScript
get localizedDateArgument(): AttributeScopes_FoundationAttributes_LocalizedStringArgumentAttributes_LocalizedDateArgumentAttribute
Swift declaration
let localizedDateArgument: AttributeScopes.FoundationAttributes.LocalizedStringArgumentAttributes.LocalizedDateArgumentAttribute

The date value used to format the run with this attribute.

get · iOS 16.0+

localizedNumericArgument

TypeScript
get localizedNumericArgument(): AttributeScopes_FoundationAttributes_LocalizedStringArgumentAttributes_LocalizedNumericArgumentAttribute
Swift declaration
let localizedNumericArgument: AttributeScopes.FoundationAttributes.LocalizedStringArgumentAttributes.LocalizedNumericArgumentAttribute

The value of a numeric argument used to format the run with this attribute.

get · iOS 16.0+

localizedDateIntervalArgument

TypeScript
get localizedDateIntervalArgument(): AttributeScopes_FoundationAttributes_LocalizedStringArgumentAttributes_LocalizedDateIntervalArgumentAttribute
Swift declaration
let localizedDateIntervalArgument: AttributeScopes.FoundationAttributes.LocalizedStringArgumentAttributes.LocalizedDateIntervalArgumentAttribute

The date interval value used to format the run with this attribute.

get · iOS 16.0+

localizedURLArgument

TypeScript
get localizedURLArgument(): AttributeScopes_FoundationAttributes_LocalizedStringArgumentAttributes_LocalizedURLArgumentAttribute
Swift declaration
let localizedURLArgument: AttributeScopes.FoundationAttributes.LocalizedStringArgumentAttributes.LocalizedURLArgumentAttribute

The URL value used to format the run with this attribute.

Skipped declarations

No declarations were skipped in this snapshot.

All Foundation types →