comparison Sources/StockCharts/LineChart/Helpers/IndicatorPoint.swift @ 103:766a1169564b

Add WatchOS compatability
author Dennis Concepción Martín <dennisconcepcionmartin@gmail.com>
date Sun, 27 Jun 2021 16:32:23 +0200
parents 5135ff3343ae
children 0c0d38dca6d8
comparison
equal deleted inserted replaced
102:7e524a9cc194 103:766a1169564b
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)
12 Circle() 13 Circle()
13 .frame(width: 20, height: 20) 14 .frame(width: 20, height: 20)
14 .foregroundColor(Color(.systemBlue)) 15 .foregroundColor(Color(.systemBlue))
16
17 #elseif os(watchOS)
18 Circle()
19 .frame(width: 20, height: 20)
20 .foregroundColor(Color(.blue))
21 #endif
15 22
16 } 23 }
17 } 24 }