Skip to content

Commit b5beab5

Browse files
committed
removed .rotate for foreGroundColor
1 parent aa91264 commit b5beab5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Sources/SwiftUICharts/Charts/BarChart/BarChartRow.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public struct BarChartRow: View {
2323
index: index,
2424
width: Float(geometry.frame(in: .local).width - Constant.spacing),
2525
numberOfDataPoints: self.data.count,
26-
gradientColor: self.style.foregroundColor.rotate(for: index),
26+
gradientColor: self.style.foregroundColor.first!,
2727
touchLocation: self.$touchLocation)
2828
.scaleEffect(self.getScaleSize(touchLocation: self.touchLocation, index: index), anchor: .bottom)
2929
.animation(.spring())

Sources/SwiftUICharts/PieChart/PieChartRow.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public struct PieChartRow: View {
3838
endDeg: self.slices[index].endDeg,
3939
index: index,
4040
backgroundColor: self.style.backgroundColor.startColor,
41-
accentColor: self.style.foregroundColor.rotate(for: index)
41+
accentColor: self.style.foregroundColor.first!
4242
)
4343
}
4444

0 commit comments

Comments
 (0)