diff --git a/Sources/SwiftUICharts/BarChart/BarChartRow.swift b/Sources/SwiftUICharts/BarChart/BarChartRow.swift index f43e14d..fb5308d 100644 --- a/Sources/SwiftUICharts/BarChart/BarChartRow.swift +++ b/Sources/SwiftUICharts/BarChart/BarChartRow.swift @@ -19,7 +19,7 @@ public struct BarChartRow : View { public var body: some View { GeometryReader { geometry in HStack(alignment: .bottom, spacing: (geometry.frame(in: .local).width-22)/CGFloat(self.data.count * 3)){ - ForEach(0.. CGFloat(i)/CGFloat(self.data.count) && self.touchLocation < CGFloat(i+1)/CGFloat(self.data.count) ? CGSize(width: 1.4, height: 1.1) : CGSize(width: 1, height: 1), anchor: .bottom) .animation(.spring())