From eafa102a84297f29f0ea22e3b41e5b4fd75f3631 Mon Sep 17 00:00:00 2001 From: Will Dale <63838770+willdale@users.noreply.github.com> Date: Tue, 15 Mar 2022 19:54:11 +0000 Subject: [PATCH] Revert "XAxis Label Height distortion fix" --- Sources/SwiftUICharts/SharedLineAndBar/Views/RotatedText.swift | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Sources/SwiftUICharts/SharedLineAndBar/Views/RotatedText.swift b/Sources/SwiftUICharts/SharedLineAndBar/Views/RotatedText.swift index d9eb2a93..574fd099 100644 --- a/Sources/SwiftUICharts/SharedLineAndBar/Views/RotatedText.swift +++ b/Sources/SwiftUICharts/SharedLineAndBar/Views/RotatedText.swift @@ -55,11 +55,10 @@ internal struct RotatedText: View where ChartData: CTLineBarChartData Color.clear .onAppear { finalFrame = geo.frame(in: .local) + chartData.viewData.xAxisLabelHeights.append(geo.frame(in: .local).width) if rotation == .degrees(0) || rotation == .radians(0) { - chartData.viewData.xAxisLabelHeights.append(geo.frame(in: .local).height) chartData.viewData.xAxislabelWidths.append(geo.frame(in: .local).width) } else { - chartData.viewData.xAxisLabelHeights.append(geo.frame(in: .local).width) chartData.viewData.xAxislabelWidths.append(geo.frame(in: .local).height) } }