comparison 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
comparison
equal deleted inserted replaced
344:276e17f11c19 345:fde2b30c719e
41 return listType.capitalized 41 return listType.capitalized
42 } 42 }
43 } 43 }
44 44
45 45
46 //struct StockRectangleRow_Previews: PreviewProvider { 46 struct StockRectangleRow_Previews: PreviewProvider {
47 // static var previews: some View { 47 static var previews: some View {
48 // StockRectangleRow(listType: "gainers", list: [CompanyQuoteModel(companyName: "apple inc", symbol: "aapl", latestPrice: 120.30, changePercent: 0.034)]) 48 StockRectangleRow(listType: "gainers", list: [CompanyQuoteModel(companyName: "apple inc", symbol: "aapl", latestPrice: 120.30, changePercent: 0.034)], intradayPrices: ["aapl": [IntradayPricesResult(open: 130.3)]])
49 // } 49 }
50 //} 50 }