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

  • AUD

    Australian Dollars

    Declaration

    Swift

    public static let AUD = Currency("AUD")
  • BRL

    Brazilian Real

    Declaration

    Swift

    public static let BRL = Currency("BRL")
  • CAD

    Canadian Dollars

    Declaration

    Swift

    public static let CAD = Currency("CAD")
  • CHF

    Swiss Franks

    Declaration

    Swift

    public static let CHF = Currency("CHF")
  • CZK

    Czech Republic Koruna

    Declaration

    Swift

    public static let CZK = Currency("CZK")
  • DKK

    Danish Krone

    Declaration

    Swift

    public static let DKK = Currency("DKK")
  • EUR

    Euro

    Declaration

    Swift

    public static let EUR = Currency("EUR")
  • GBP

    British Pound

    Declaration

    Swift

    public static let GBP = Currency("GBP")
  • HKD

    Hong Kong Dollar

    Declaration

    Swift

    public static let HKD = Currency("HKD")
  • HUF

    Hungarian Forint

    Declaration

    Swift

    public static let HUF = Currency("HUF")
  • JPY

    Japanese Yen

    Declaration

    Swift

    public static let JPY = Currency("JPY")
  • NOK

    Norwegian Krone

    Declaration

    Swift

    public static let NOK = Currency("NOK")
  • NZD

    New Zealand Dollar

    Declaration

    Swift

    public static let NZD = Currency("NZD")
  • PLN

    Polish Zloty

    Declaration

    Swift

    public static let PLN = Currency("PLN")
  • SEK

    Swedish Krone

    Declaration

    Swift

    public static let SEK = Currency("SEK")
  • USD

    United States Dollar

    Declaration

    Swift

    public static let USD = Currency("USD")
  • ZAR

    South African Rand

    Declaration

    Swift

    public static let ZAR = Currency("ZAR")
  • XOR

    Unsupported Currency

    Declaration

    Swift

    public static let XOR = Currency("Unsupported Currency")