The type for representing grammatical gender in localized text.
Members (7)
get · iOS 18.0+
currentUser
TypeScript
static get currentUser(): TermOfAddress
Swift declaration
static let currentUser: TermOfAddress
The term of address that should be used for addressing the user
This term of address will only compare equal to another `currentUser`
get · iOS 17.0+
neutral
TypeScript
static get neutral(): TermOfAddress
Swift declaration
static let neutral: TermOfAddress
The term of address for representing gender-neutral pronouns and grammatical gender.
get · iOS 17.0+
feminine
TypeScript
static get feminine(): TermOfAddress
Swift declaration
static let feminine: TermOfAddress
The term of address for representing feminine pronouns and grammatical gender.
get · iOS 17.0+
language
TypeScript
get language(): (Locale_Language) | null
Swift declaration
var language: Locale.Language? { get }
The specific language associated with a term of address.
This property is only set for terms of address created through ``localized(language:pronouns:)``. This property is `nil` otherwise.
get · iOS 17.0+
pronouns
TypeScript
get pronouns(): Array<Morphology_Pronoun>
Swift declaration
var pronouns: [Morphology.Pronoun] { get }
The pronouns associated with a term of address.
This property is only set for terms of address created through ``localized(language:pronouns:)``. Calling this property returns an empty array otherwise.
Returns a term of address restricted to a specific language for a group of pronouns.
- Parameters:
- language: The language to associate with the term of address.
- pronouns: The pronouns to associate with the term of address.
- Returns: A term of address restricted to the given language and pronouns.
get · iOS 17.0+
masculine
TypeScript
static get masculine(): TermOfAddress
Swift declaration
static let masculine: TermOfAddress
The term of address for representing masculine pronouns and grammatical gender.