Skip to content

Commit 7b50b53

Browse files
authored
Merge pull request #175 from willdale/revert-167-xAxisLabelHeightFix
Revert "XAxis Label Height distortion fix"
2 parents e8c3dca + eafa102 commit 7b50b53

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Sources/SwiftUICharts/SharedLineAndBar/Views/RotatedText.swift

+1-2
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,10 @@ internal struct RotatedText<ChartData>: View where ChartData: CTLineBarChartData
5555
Color.clear
5656
.onAppear {
5757
finalFrame = geo.frame(in: .local)
58+
chartData.viewData.xAxisLabelHeights.append(geo.frame(in: .local).width)
5859
if rotation == .degrees(0) || rotation == .radians(0) {
59-
chartData.viewData.xAxisLabelHeights.append(geo.frame(in: .local).height)
6060
chartData.viewData.xAxislabelWidths.append(geo.frame(in: .local).width)
6161
} else {
62-
chartData.viewData.xAxisLabelHeights.append(geo.frame(in: .local).width)
6362
chartData.viewData.xAxislabelWidths.append(geo.frame(in: .local).height)
6463
}
6564
}

0 commit comments

Comments
 (0)