Mercurial > public > simoleon
diff Simoleon/Helpers/ConversionBox.swift @ 152:2584fd74235a
Add new currencies
author | Dennis Concepcion Martin <dennisconcepcionmartin@gmail.com> |
---|---|
date | Mon, 23 Aug 2021 17:14:14 +0100 |
parents | 6eac99e99b96 |
children |
line wrap: on
line diff
--- a/Simoleon/Helpers/ConversionBox.swift Thu Aug 19 19:13:04 2021 +0100 +++ b/Simoleon/Helpers/ConversionBox.swift Mon Aug 23 17:14:14 2021 +0100 @@ -16,9 +16,9 @@ var body: some View { VStack(alignment: .leading) { - let currencyMetadata: [String: CurrencyMetadataModel] = try! read(json: "CurrencyMetadata.json") + let currencyDetails: [String: CurrencyDetailsModel] = try! read(json: "CurrencyDetails.json") let currencies = currencyPair.split(separator: "/") - Text("\(currencyMetadata[String(currencies[0])]!.name) (\(String(currencies[0])))") + Text("\(currencyDetails[String(currencies[0])]!.name) (\(String(currencies[0])))") .font(.callout) .fontWeight(.semibold) .padding(.top, 40) @@ -44,7 +44,7 @@ Divider() - Text("\(currencyMetadata[String(currencies[1])]!.name) (\(String(currencies[1])))") + Text("\(currencyDetails[String(currencies[1])]!.name) (\(String(currencies[1])))") .font(.callout) .fontWeight(.semibold) .padding(.top, 10)