identifier
TypeScriptget identifier(): stringSwift declarationvar identifier: String { get set }The currency's identifier.
struct · iOS 16.0+ · SDK 27.1
struct CurrencyA type that represents the currency system used by a locale, like dollars or euros.
get identifier(): stringSwift declarationvar identifier: String { get set }The currency's identifier.
set identifier(value: string)Swift declarationvar identifier: String { get set }The currency's identifier.
get isISOCurrency(): booleanSwift declarationvar isISOCurrency: Bool { get }A Boolean value that indicates whether the currency is in the list of ISO-defined currencies.
static get isoCurrencies(): Array<Locale_Currency>Swift declarationstatic var isoCurrencies: [Locale.Currency] { get }An array containing currencies defined by the currency codes in ISO-4217.
static initStringLiteral(value: string): Locale_CurrencySwift declarationinit(stringLiteral value: String)Creates a currency instance from a BCP 47 identifier as a string literal. - Parameter value: The currency's BCP 47 identifier, like `usd` for US dollars, or `jpy` for Japanese yen.
get debugDescription(): stringSwift declarationvar debugDescription: String { get }A textual representation of this instance, suitable for debugging. Calling this property directly is discouraged. Instead, convert an instance of any type to a string by using the `String(reflecting:)` initializer. This initializer works with any type, and uses the custom `debugDescription` property for types that conform to `CustomDebugStringConvertible`: struct Point: CustomDebugStringConvertible { let x: Int, y: Int var debugDescription: String { return "(\(x), \(y))" } } let p = Point(x: 21, y: 30) let s = String(reflecting: p) print(s) // Prints "(21, 30)" The conversion of `p` to a string in the assignment to `s` uses the `Point` type's `debugDescription` property.
static get unknown(): Locale_CurrencySwift declarationstatic let unknown: Locale.CurrencyA representation of an "unknown" currency, for use with transactions that don't involve any currency.
static init(identifier: string): Locale_CurrencySwift declarationinit(_ identifier: String)Creates a currency instance from a BCP 47 identifier. - Parameter identifier: The currency's BCP 47 identifier, like `usd` for US dollars, or `jpy` for Japanese yen.
No declarations were skipped in this snapshot.