comparison LazyBear/Views/Home/Helpers/CurrencyItem.swift @ 357:eb97439e46cd

Implement ExtensiveList in HomeView
author Dennis Concepción Martín <66180929+denniscm190@users.noreply.github.com>
date Thu, 15 Apr 2021 23:37:25 +0200
parents 5ccceb527178
children 2984d8946342
comparison
equal deleted inserted replaced
356:5385a8f8cc5c 357:eb97439e46cd
21 .frame(width: 40) 21 .frame(width: 40)
22 .overlay( 22 .overlay(
23 Text(currency.flag) 23 Text(currency.flag)
24 ) 24 )
25 VStack(alignment: .leading) { 25 VStack(alignment: .leading) {
26 Text(currencySymbol) 26 Text("USD/\(currencySymbol)")
27 .font(.headline) 27 .font(.headline)
28 28
29 Text(currency.name) 29 Text(currency.name)
30 .font(.callout) 30 .font(.callout)
31 } 31 }
32 32
33 Spacer() 33 Spacer()
34 Text("$ \(currency.rate, specifier: "%.2f")") 34 Text("\(currency.rate, specifier: "%.2f")")
35 .padding(.horizontal) 35 .padding(.horizontal)
36 } 36 }
37 .clipShape(RoundedRectangle(cornerRadius: 8)) 37 .clipShape(RoundedRectangle(cornerRadius: 8))
38 ) 38 )
39 } 39 }