Compare commits

..

1 Commits

Author SHA1 Message Date
Andras Samu c6610f5679 Fixed control flow error 2020-07-05 11:02:56 +02:00
2 changed files with 6 additions and 8 deletions
@@ -85,15 +85,13 @@ public struct MultiLineChartView: View {
.font(.callout)
.foregroundColor(self.colorScheme == .dark ? self.darkModeStyle.legendTextColor : self.style.legendTextColor)
}
if let rateValue = rateValue {
HStack {
if (rateValue >= 0){
Image(systemName: "arrow.up")
}else{
Image(systemName: "arrow.down")
}
Text("\(rateValue)%")
HStack {
if (rateValue ?? 0 >= 0){
Image(systemName: "arrow.up")
}else{
Image(systemName: "arrow.down")
}
Text("\(rateValue ?? 0)%")
}
}
.transition(.opacity)