diff LazyBear/Views/Global Helpers/StockItem.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/StockItem.swift	Wed Apr 07 16:40:53 2021 +0200
+++ b/LazyBear/Views/Global Helpers/StockItem.swift	Thu Apr 08 20:15:28 2021 +0200
@@ -60,9 +60,9 @@
     }
 }
 
-//struct StockItem_Previews: PreviewProvider {
-//    static var previews: some View {
-//        StockItem(company: CompanyQuoteModel(companyName: "Akumin Inc", symbol: "AKU", latestPrice: 120.30, changePercent: 0.03))
-//
-//    }
-//}
+struct StockItem_Previews: PreviewProvider {
+    static var previews: some View {
+        StockItem(company: CompanyQuoteModel(companyName: "Akumin Inc", symbol: "AKU", latestPrice: 120.30, changePercent: 0.03), intradayPrices: [IntradayPricesResult(open: 130.3)])
+
+    }
+}