Mercurial > public > simoleon
diff Simoleon/ConversionView.swift @ 159:35628bac01f5
Fix a bug that selected wrong symbol in pair
author | Dennis Concepcion Martin <dennisconcepcionmartin@gmail.com> |
---|---|
date | Sat, 28 Aug 2021 19:18:50 +0100 |
parents | 8c3bbd640103 |
children | 0c589138a6f3 |
line wrap: on
line diff
--- a/Simoleon/ConversionView.swift Sat Aug 28 19:17:55 2021 +0100 +++ b/Simoleon/ConversionView.swift Sat Aug 28 19:18:50 2021 +0100 @@ -21,7 +21,10 @@ var body: some View { ScrollView(showsIndicators: false) { VStack(alignment: .leading) { - CurrencySelector(currencyPair: currencyPair) + HStack { + CurrencySelector(currencyPair: currencyPair) + FavoriteButton(currencyPair: currencyPair) + } } .padding() } @@ -61,8 +64,8 @@ } -//struct ConversionView_Previews: PreviewProvider { -// static var previews: some View { -// ConversionView() -// } -//} +struct ConversionView_Previews: PreviewProvider { + static var previews: some View { + ConversionView(showNavigationView: true, currencyPair: CurrencyPairModel(baseSymbol: "USD", quoteSymbol: "EUR")) + } +}