Mercurial > public > lazybear
diff LazyBear/Views/Global Helpers/StockRectangleRow.swift @ 345:fde2b30c719e
Implementing Networking in ProfileView
author | Dennis Concepción Martín <66180929+denniscm190@users.noreply.github.com> |
---|---|
date | Thu, 08 Apr 2021 20:15:28 +0200 |
parents | ab909fc9ce55 |
children | 80bfa88c6b0f |
line wrap: on
line diff
--- a/LazyBear/Views/Global Helpers/StockRectangleRow.swift Wed Apr 07 16:40:53 2021 +0200 +++ b/LazyBear/Views/Global Helpers/StockRectangleRow.swift Thu Apr 08 20:15:28 2021 +0200 @@ -43,8 +43,8 @@ } -//struct StockRectangleRow_Previews: PreviewProvider { -// static var previews: some View { -// StockRectangleRow(listType: "gainers", list: [CompanyQuoteModel(companyName: "apple inc", symbol: "aapl", latestPrice: 120.30, changePercent: 0.034)]) -// } -//} +struct StockRectangleRow_Previews: PreviewProvider { + static var previews: some View { + StockRectangleRow(listType: "gainers", list: [CompanyQuoteModel(companyName: "apple inc", symbol: "aapl", latestPrice: 120.30, changePercent: 0.034)], intradayPrices: ["aapl": [IntradayPricesResult(open: 130.3)]]) + } +}