Skip to content

Commit d7e9802

Browse files
authored
fix: remove UIColors which caused CI build errors (#251)
1 parent bd29afc commit d7e9802

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

Sources/SwiftUICharts/Base/Label/ChartLabel.swift

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,13 @@ public struct ChartLabel: View {
3939
private var labelPadding: EdgeInsets {
4040
switch labelType {
4141
case .title:
42-
return EdgeInsets(top: 16.0, leading: 8.0, bottom: 0.0, trailing: 8.0)
42+
return EdgeInsets(top: 16.0, leading: 0, bottom: 0.0, trailing: 8.0)
4343
case .legend:
44-
return EdgeInsets(top: 4.0, leading: 8.0, bottom: 0.0, trailing: 8.0)
44+
return EdgeInsets(top: 4.0, leading: 0, bottom: 0.0, trailing: 8.0)
4545
case .subTitle:
46-
return EdgeInsets(top: 8.0, leading: 8.0, bottom: 0.0, trailing: 8.0)
46+
return EdgeInsets(top: 8.0, leading: 0, bottom: 0.0, trailing: 8.0)
4747
case .largeTitle:
48-
return EdgeInsets(top: 24.0, leading: 8.0, bottom: 0.0, trailing: 8.0)
48+
return EdgeInsets(top: 24.0, leading: 0, bottom: 0.0, trailing: 8.0)
4949
case .custom(_, let padding, _):
5050
return padding
5151
}
@@ -59,13 +59,13 @@ public struct ChartLabel: View {
5959
private var labelColor: Color {
6060
switch labelType {
6161
case .title:
62-
return Color(UIColor.label)
62+
return Color.primary
6363
case .legend:
64-
return Color(UIColor.secondaryLabel)
64+
return Color.secondary
6565
case .subTitle:
66-
return Color(UIColor.label)
66+
return Color.primary
6767
case .largeTitle:
68-
return Color(UIColor.label)
68+
return Color.primary
6969
case .custom(_, _, let color):
7070
return color
7171
}

0 commit comments

Comments
 (0)