We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e8c3dca + eafa102 commit 7b50b53Copy full SHA for 7b50b53
Sources/SwiftUICharts/SharedLineAndBar/Views/RotatedText.swift
@@ -55,11 +55,10 @@ internal struct RotatedText<ChartData>: View where ChartData: CTLineBarChartData
55
Color.clear
56
.onAppear {
57
finalFrame = geo.frame(in: .local)
58
+ chartData.viewData.xAxisLabelHeights.append(geo.frame(in: .local).width)
59
if rotation == .degrees(0) || rotation == .radians(0) {
- chartData.viewData.xAxisLabelHeights.append(geo.frame(in: .local).height)
60
chartData.viewData.xAxislabelWidths.append(geo.frame(in: .local).width)
61
} else {
62
- chartData.viewData.xAxisLabelHeights.append(geo.frame(in: .local).width)
63
chartData.viewData.xAxislabelWidths.append(geo.frame(in: .local).height)
64
}
65
0 commit comments