comparison Simoleon/Helpers/CurrencyRow.swift @ 187:13d5a8deb6c2

add AboutView and FavoritesView
author Dennis Concepcion Martin <dennisconcepcionmartin@gmail.com>
date Thu, 23 Dec 2021 16:12:22 +0100
parents 1ebd1c5dd302
children
comparison
equal deleted inserted replaced
186:1ebd1c5dd302 187:13d5a8deb6c2
10 struct CurrencyRow: View { 10 struct CurrencyRow: View {
11 var currency: SupportedCurrencyResult 11 var currency: SupportedCurrencyResult
12 12
13 var body: some View { 13 var body: some View {
14 HStack { 14 HStack {
15 let flagName = getFlagName(currency: currency) 15 Flag(currencyCode: currency.code)
16 Flag(flagName: flagName)
17 16
18 VStack(alignment: .leading) { 17 VStack(alignment: .leading) {
19 Text(currency.code) 18 Text(currency.code)
20 .font(.headline) 19 .font(.headline)
21 20