Mercurial > public > lazybear
diff LazyBear/Views/Global Helpers/StockItem.swift @ 349:5ccceb527178
Implementing new internal API
author | Dennis Concepción Martín <66180929+denniscm190@users.noreply.github.com> |
---|---|
date | Wed, 14 Apr 2021 23:08:26 +0200 |
parents | 80bfa88c6b0f |
children | eb97439e46cd |
line wrap: on
line diff
--- a/LazyBear/Views/Global Helpers/StockItem.swift Sun Apr 11 19:56:04 2021 +0200 +++ b/LazyBear/Views/Global Helpers/StockItem.swift Wed Apr 14 23:08:26 2021 +0200 @@ -39,7 +39,7 @@ Spacer() - if let prices = intradayPrices?.compactMap { $0.marketOpen } { + if let prices = intradayPrices?.compactMap { $0.open } { LineView(data: prices) .foregroundColor(company.changePercent < 0 ? .red: .green) .padding(.vertical) @@ -56,7 +56,7 @@ static var previews: some View { StockItem( company: QuoteModel(companyName: "apple inc", symbol: "aapl", latestPrice: 130.3, changePercent: 0.03), - intradayPrices: [IntradayPricesModel(marketOpen: 130.3)] + intradayPrices: [IntradayPricesModel(open: 130.3)] ) } }