diff LazyBear/Views/Global Helpers/StockRow.swift @ 421:9b7af8e83d12

Change intraday prices model
author Dennis Concepción Martín <66180929+denniscm190@users.noreply.github.com>
date Sat, 12 Jun 2021 15:20:04 +0200
parents 5f21f7c23c5e
children
line wrap: on
line diff
--- a/LazyBear/Views/Global Helpers/StockRow.swift	Fri Jun 11 13:02:18 2021 +0200
+++ b/LazyBear/Views/Global Helpers/StockRow.swift	Sat Jun 12 15:20:04 2021 +0200
@@ -11,7 +11,7 @@
 struct StockRow: View {
     var listName: String
     var list: [String: QuoteModel]
-    var intradayPrices: [String: [IntradayPriceModel]]?
+    var intradayPrices: [String: [Double]]?
     var addOnDelete: Bool
 
     @State private var showExtensiveList = false
@@ -64,7 +64,7 @@
         StockRow(
             listName: "Gainers",
             list: ["AAPL": QuoteModel(changePercent: 0.03, companyName: "Apple Inc", latestPrice: 130.3)],
-            intradayPrices: ["AAPL": [IntradayPriceModel(open: 130.2)]], addOnDelete: false
+            intradayPrices: ["AAPL": [130.2]], addOnDelete: false
         )
     }
 }