One Logo Pool Ball
Foundation · IOS API REFERENCE

AttributedString.LocalizationOptions

struct · iOS 16.0+ · SDK 27.1

struct LocalizationOptions

Options that affect the behavior of AttributedString initializers related to localization.

Members (11)

get · iOS 16.0+

replacements

TypeScript
get replacements(): (Array<SDKHandle>) | null
Swift declaration
var replacements: [any CVarArg]?
set · iOS 16.0+

replacements

TypeScript
set replacements(value: (Array<SDKHandle>) | null)
Swift declaration
var replacements: [any CVarArg]?
static · iOS 18.0+

termsOfAddressConcept

TypeScript
static termsOfAddressConcept(termsOfAddress: Array<TermOfAddress>): AttributedString_LocalizationOptions
Swift declaration
static func termsOfAddressConcept(_ termsOfAddress: [TermOfAddress]) -> AttributedString.LocalizationOptions
static · iOS 18.0+

localizedPhraseConcept

TypeScript
static localizedPhraseConcept(phrase: string): AttributedString_LocalizationOptions
Swift declaration
static func localizedPhraseConcept(_ phrase: String) -> AttributedString.LocalizationOptions
get · iOS 16.0+

applyReplacementIndexAttribute

TypeScript
get applyReplacementIndexAttribute(): boolean
Swift declaration
var applyReplacementIndexAttribute: Bool
set · iOS 16.0+

applyReplacementIndexAttribute

TypeScript
set applyReplacementIndexAttribute(value: boolean)
Swift declaration
var applyReplacementIndexAttribute: Bool
get · iOS 18.0+

inflect

TypeScript
get inflect(): boolean
Swift declaration
var inflect: Bool

Whether attributes for automatic grammar agreement and formatting should be processed upon loading the string. Default value is `true`.

set · iOS 18.0+

inflect

TypeScript
set inflect(value: boolean)
Swift declaration
var inflect: Bool

Whether attributes for automatic grammar agreement and formatting should be processed upon loading the string. Default value is `true`.

get · iOS 17.0+

concepts

TypeScript
get concepts(): (Array<InflectionConcept>) | null
Swift declaration
var concepts: [InflectionConcept]?

A set of concepts used to configure the localization behavior.

set · iOS 17.0+

concepts

TypeScript
set concepts(value: (Array<InflectionConcept>) | null)
Swift declaration
var concepts: [InflectionConcept]?

A set of concepts used to configure the localization behavior.

init · iOS 16.0+

init

TypeScript
static init(): AttributedString_LocalizationOptions
Swift declaration
init()

Skipped declarations

No declarations were skipped in this snapshot.

All Foundation types →