Mercurial > public > simoleon
view Simoleon/UI/CurrencyRow.swift @ 166:e4cbb1eea394
Implement FavoritesView
author | Dennis Concepcion Martin <dennisconcepcionmartin@gmail.com> |
---|---|
date | Sat, 11 Sep 2021 16:30:32 +0200 |
parents | 84137052813d |
children | 1940db1ef321 |
line wrap: on
line source
// // CurrencyRow.swift // Simoleon // // Created by Dennis Concepción Martín on 15/07/2021. // import SwiftUI struct CurrencyRow: View { var currency: CurrencyModel var body: some View { HStack { Flag(flag: currency.flag) VStack(alignment: .leading) { Text(currency.symbol) .font(.headline) Text(currency.name) .font(.subheadline) .lineLimit(1) } .padding(.horizontal) } } } struct CurrencyRow_Previews: PreviewProvider { static var previews: some View { CurrencyRow( currency: CurrencyModel( symbol: "USD", name: "United States Dollar", flag: "US", isCrypto: false ) ) } }