Mercurial > public > stock-charts
comparison Sources/StockCharts/LineChart/Helpers/IndicatorPoint.swift @ 106:0c0d38dca6d8
Change colours to native swiftUI
author | Dennis Concepción Martín <dennisconcepcionmartin@gmail.com> |
---|---|
date | Mon, 28 Jun 2021 13:48:03 +0200 |
parents | 766a1169564b |
children | f53d8b9ca92b |
comparison
equal
deleted
inserted
replaced
105:facd63329f23 | 106:0c0d38dca6d8 |
---|---|
7 | 7 |
8 import SwiftUI | 8 import SwiftUI |
9 | 9 |
10 public struct IndicatorPoint: View { | 10 public struct IndicatorPoint: View { |
11 public var body: some View { | 11 public var body: some View { |
12 #if os(iOS) | |
13 Circle() | 12 Circle() |
14 .frame(width: 20, height: 20) | 13 .frame(width: 20, height: 20) |
15 .foregroundColor(Color(.systemBlue)) | 14 .foregroundColor(Color.blue) |
16 | |
17 #elseif os(watchOS) | |
18 Circle() | |
19 .frame(width: 20, height: 20) | |
20 .foregroundColor(Color(.blue)) | |
21 #endif | |
22 | |
23 } | 15 } |
24 } | 16 } |