From 5bb3cfc6be4dd6301f53896d603e69914182a846 Mon Sep 17 00:00:00 2001 From: Will Dale <63838770+willdale@users.noreply.github.com> Date: Mon, 29 Mar 2021 09:22:02 +0100 Subject: [PATCH] Fix a layout bug. --- .../SwiftUICharts/SharedLineAndBar/Views/ YAxisLabelCell.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/Sources/SwiftUICharts/SharedLineAndBar/Views/ YAxisLabelCell.swift b/Sources/SwiftUICharts/SharedLineAndBar/Views/ YAxisLabelCell.swift index d1375c35..cf5a2332 100644 --- a/Sources/SwiftUICharts/SharedLineAndBar/Views/ YAxisLabelCell.swift +++ b/Sources/SwiftUICharts/SharedLineAndBar/Views/ YAxisLabelCell.swift @@ -71,6 +71,7 @@ internal struct XAxisChartDataCell: View where ChartData: CTLineBarCh } } ) + .fixedSize(horizontal: true, vertical: false) .onAppear { chartData.viewData.xAxisLabelHeights.append(height) }