From d7e9802debff03bc7fde8601369a8302bcd5e3bb Mon Sep 17 00:00:00 2001 From: Andras Samu Date: Sat, 3 Sep 2022 19:01:01 +0200 Subject: [PATCH] fix: remove UIColors which caused CI build errors (#251) --- .../SwiftUICharts/Base/Label/ChartLabel.swift | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Sources/SwiftUICharts/Base/Label/ChartLabel.swift b/Sources/SwiftUICharts/Base/Label/ChartLabel.swift index 96a8630..fb1a890 100644 --- a/Sources/SwiftUICharts/Base/Label/ChartLabel.swift +++ b/Sources/SwiftUICharts/Base/Label/ChartLabel.swift @@ -39,13 +39,13 @@ public struct ChartLabel: View { private var labelPadding: EdgeInsets { switch labelType { case .title: - return EdgeInsets(top: 16.0, leading: 8.0, bottom: 0.0, trailing: 8.0) + return EdgeInsets(top: 16.0, leading: 0, bottom: 0.0, trailing: 8.0) case .legend: - return EdgeInsets(top: 4.0, leading: 8.0, bottom: 0.0, trailing: 8.0) + return EdgeInsets(top: 4.0, leading: 0, bottom: 0.0, trailing: 8.0) case .subTitle: - return EdgeInsets(top: 8.0, leading: 8.0, bottom: 0.0, trailing: 8.0) + return EdgeInsets(top: 8.0, leading: 0, bottom: 0.0, trailing: 8.0) case .largeTitle: - return EdgeInsets(top: 24.0, leading: 8.0, bottom: 0.0, trailing: 8.0) + return EdgeInsets(top: 24.0, leading: 0, bottom: 0.0, trailing: 8.0) case .custom(_, let padding, _): return padding } @@ -59,13 +59,13 @@ public struct ChartLabel: View { private var labelColor: Color { switch labelType { case .title: - return Color(UIColor.label) + return Color.primary case .legend: - return Color(UIColor.secondaryLabel) + return Color.secondary case .subTitle: - return Color(UIColor.label) + return Color.primary case .largeTitle: - return Color(UIColor.label) + return Color.primary case .custom(_, _, let color): return color }