diff Sources/StockCharts/LineChart/Helpers/IndicatorPoint.swift @ 116:5057c45046c1

Add default initializers
author Dennis Concepcion Martin <dennisconcepcionmartin@gmail.com>
date Mon, 09 Aug 2021 16:32:45 +0100
parents f53d8b9ca92b
children
line wrap: on
line diff
--- a/Sources/StockCharts/LineChart/Helpers/IndicatorPoint.swift	Thu Aug 05 15:45:42 2021 +0100
+++ b/Sources/StockCharts/LineChart/Helpers/IndicatorPoint.swift	Mon Aug 09 16:32:45 2021 +0100
@@ -8,11 +8,11 @@
 import SwiftUI
 
 public struct IndicatorPoint: View {
-    public var style: LineChartStyle
+    public var lineChartController: LineChartController
     
     public var body: some View {
         Circle()
             .frame(width: 20, height: 20)
-            .foregroundColor(style.indicatorPointColor)
+            .foregroundColor(lineChartController.indicatorPointColor)
     }
 }