diff Sources/StockCharts/LineChart/Helpers/IndicatorPoint.swift @ 108:f53d8b9ca92b

Custom style implemented
author Dennis Concepción Martín <dennisconcepcionmartin@gmail.com>
date Sun, 04 Jul 2021 16:40:24 +0100
parents 0c0d38dca6d8
children 5057c45046c1
line wrap: on
line diff
--- a/Sources/StockCharts/LineChart/Helpers/IndicatorPoint.swift	Mon Jun 28 14:01:13 2021 +0200
+++ b/Sources/StockCharts/LineChart/Helpers/IndicatorPoint.swift	Sun Jul 04 16:40:24 2021 +0100
@@ -8,9 +8,11 @@
 import SwiftUI
 
 public struct IndicatorPoint: View {
+    public var style: LineChartStyle
+    
     public var body: some View {
         Circle()
             .frame(width: 20, height: 20)
-            .foregroundColor(Color.blue)
+            .foregroundColor(style.indicatorPointColor)
     }
 }