comparison 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
comparison
equal deleted inserted replaced
107:b0c81b2e624d 108:f53d8b9ca92b
6 // 6 //
7 7
8 import SwiftUI 8 import SwiftUI
9 9
10 public struct IndicatorPoint: View { 10 public struct IndicatorPoint: View {
11 public var style: LineChartStyle
12
11 public var body: some View { 13 public var body: some View {
12 Circle() 14 Circle()
13 .frame(width: 20, height: 20) 15 .frame(width: 20, height: 20)
14 .foregroundColor(Color.blue) 16 .foregroundColor(style.indicatorPointColor)
15 } 17 }
16 } 18 }