comparison Simoleon/Helpers/CurrencyRow.swift @ 50:7a6a7c677851

Handle errors with alerts
author Dennis Concepción Martín <dennisconcepcionmartin@gmail.com>
date Mon, 26 Jul 2021 21:52:15 +0100
parents c52966834f83
children c7b6249ab745
comparison
equal deleted inserted replaced
48:67e76ce661a1 50:7a6a7c677851
7 7
8 import SwiftUI 8 import SwiftUI
9 9
10 struct CurrencyRow: View { 10 struct CurrencyRow: View {
11 var currencyPair: String 11 var currencyPair: String
12
12 let currencyMetadata: [String: CurrencyMetadataModel] = parseJson("CurrencyMetadata.json") 13 let currencyMetadata: [String: CurrencyMetadataModel] = parseJson("CurrencyMetadata.json")
13 14
14 var body: some View { 15 var body: some View {
15 HStack { 16 HStack {
16 let currencies = currencyPair.split(separator: "/") 17 let currencies = currencyPair.split(separator: "/")