comparison Sources/StockCharts/LineChart/Helpers/ChartLabel.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
26 let hour = hours[indexPosition] 26 let hour = hours[indexPosition]
27 Text(hour) 27 Text(hour)
28 .opacity(0.5) 28 .opacity(0.5)
29 } 29 }
30 30
31 #if os(iOS)
32 Text("\(data[indexPosition], specifier: "%.2f")") 31 Text("\(data[indexPosition], specifier: "%.2f")")
33 .foregroundColor(Color(.systemBlue)) 32 .foregroundColor(Color.blue)
34
35 #elseif os(watchOS)
36 Text("\(data[indexPosition], specifier: "%.2f")")
37 .foregroundColor(Color(.blue))
38 #endif
39 33
40 } 34 }
41 .font(.caption) 35 .font(.caption)
42 } 36 }
43 } 37 }