Currency
public struct Currency
Collection of static identifiers for all supported currencies
-
Raw value of the currency as a String
Declaration
Swift
public let rawValue: String
-
Designated initializer
Declaration
Swift
public init(_ fromRaw: String)
Parameters
fromRaw
raw string value of the currency based on ISO standards
Return Value
a Currency object
-
Australian Dollars
Declaration
Swift
public static let AUD = Currency("AUD")
-
Brazilian Real
Declaration
Swift
public static let BRL = Currency("BRL")
-
Canadian Dollars
Declaration
Swift
public static let CAD = Currency("CAD")
-
Swiss Franks
Declaration
Swift
public static let CHF = Currency("CHF")
-
Czech Republic Koruna
Declaration
Swift
public static let CZK = Currency("CZK")
-
Danish Krone
Declaration
Swift
public static let DKK = Currency("DKK")
-
Euro
Declaration
Swift
public static let EUR = Currency("EUR")
-
British Pound
Declaration
Swift
public static let GBP = Currency("GBP")
-
Hong Kong Dollar
Declaration
Swift
public static let HKD = Currency("HKD")
-
Hungarian Forint
Declaration
Swift
public static let HUF = Currency("HUF")
-
Japanese Yen
Declaration
Swift
public static let JPY = Currency("JPY")
-
Norwegian Krone
Declaration
Swift
public static let NOK = Currency("NOK")
-
New Zealand Dollar
Declaration
Swift
public static let NZD = Currency("NZD")
-
Polish Zloty
Declaration
Swift
public static let PLN = Currency("PLN")
-
Swedish Krone
Declaration
Swift
public static let SEK = Currency("SEK")
-
United States Dollar
Declaration
Swift
public static let USD = Currency("USD")
-
South African Rand
Declaration
Swift
public static let ZAR = Currency("ZAR")
-
Unsupported Currency
Declaration
Swift
public static let XOR = Currency("Unsupported Currency")