Mercurial > public > stock-charts
comparison 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 |
comparison
equal
deleted
inserted
replaced
115:f90a675e5e95 | 116:5057c45046c1 |
---|---|
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 | 11 public var lineChartController: LineChartController |
12 | 12 |
13 public var body: some View { | 13 public var body: some View { |
14 Circle() | 14 Circle() |
15 .frame(width: 20, height: 20) | 15 .frame(width: 20, height: 20) |
16 .foregroundColor(style.indicatorPointColor) | 16 .foregroundColor(lineChartController.indicatorPointColor) |
17 } | 17 } |
18 } | 18 } |