Mercurial > public > stock-charts
comparison Sources/StockCharts/LineChart/LineChartStyle.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 | |
children |
comparison
equal
deleted
inserted
replaced
107:b0c81b2e624d | 108:f53d8b9ca92b |
---|---|
1 // | |
2 // LineChartStyle.swift | |
3 // StockCharts | |
4 // | |
5 // Created by Dennis Concepción Martín on 04/07/2021. | |
6 // | |
7 | |
8 import SwiftUI | |
9 | |
10 public class LineChartStyle { | |
11 public var labelColor: Color | |
12 public var indicatorPointColor: Color | |
13 public var showingIndicatorLineColor: Color | |
14 public var flatTrendLineColor: Color | |
15 public var uptrendLineColor: Color | |
16 public var downtrendLineColor: Color | |
17 | |
18 public init(labelColor: Color, indicatorPointColor: Color, showingIndicatorLineColor: Color, flatTrendLineColor: Color, uptrendLineColor: Color, downtrendLineColor: Color) { | |
19 self.labelColor = labelColor | |
20 self.indicatorPointColor = indicatorPointColor | |
21 self.showingIndicatorLineColor = showingIndicatorLineColor | |
22 self.flatTrendLineColor = flatTrendLineColor | |
23 self.uptrendLineColor = uptrendLineColor | |
24 self.downtrendLineColor = downtrendLineColor | |
25 } | |
26 } |