Skip to content

Commit

Permalink
Fixed infinite size compile error
Browse files Browse the repository at this point in the history
  • Loading branch information
AppPear committed Feb 13, 2020
1 parent 37779e1 commit 841bde1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/SwiftUICharts/Helpers.swift
Original file line number Diff line number Diff line change
Expand Up @@ -111,13 +111,13 @@ public struct ChartForm {

}

public struct ChartStyle {
public class ChartStyle {
public var backgroundColor: Color
public var accentColor: Color
public var secondGradientColor: Color
public var textColor: Color
public var legendTextColor: Color
public var darkModeStyle: ChartStyle?
public weak var darkModeStyle: ChartStyle?

public init(backgroundColor: Color, accentColor: Color, secondGradientColor: Color, textColor: Color, legendTextColor: Color){
self.backgroundColor = backgroundColor
Expand Down

0 comments on commit 841bde1

Please sign in to comment.