comparison Sources/StockCharts/LineChart/Helpers/ChartLabel.swift @ 101:ffc7731f7206

Change opacity
author Dennis Concepción Martín <dennisconcepcionmartin@gmail.com>
date Tue, 22 Jun 2021 16:39:09 +0200
parents 721885770d23
children 766a1169564b
comparison
equal deleted inserted replaced
100:721885770d23 101:ffc7731f7206
18 HStack { 18 HStack {
19 Group { 19 Group {
20 if let dates = self.dates { 20 if let dates = self.dates {
21 let date = formatStringDate(dates[indexPosition]) 21 let date = formatStringDate(dates[indexPosition])
22 Text(date) 22 Text(date)
23 .opacity(0.5)
23 } 24 }
24 if let hours = self.hours { 25 if let hours = self.hours {
25 let hour = hours[indexPosition] 26 let hour = hours[indexPosition]
26 Text(hour) 27 Text(hour)
28 .opacity(0.5)
27 } 29 }
28 Text("\(data[indexPosition], specifier: "%.2f")") 30 Text("\(data[indexPosition], specifier: "%.2f")")
29 .foregroundColor(Color(.systemBlue)) 31 .foregroundColor(Color(.systemBlue))
30 } 32 }
31 .font(.caption) 33 .font(.caption)