diff --git a/Charts/Classes/Charts/BarLineChartViewBase.swift b/Charts/Classes/Charts/BarLineChartViewBase.swift index f6abb0a916..ec967c0d37 100644 --- a/Charts/Classes/Charts/BarLineChartViewBase.swift +++ b/Charts/Classes/Charts/BarLineChartViewBase.swift @@ -74,7 +74,7 @@ public class BarLineChartViewBase: ChartViewBase, UIGestureRecognizerDelegate super.init(frame: frame) } - public required init(coder aDecoder: NSCoder) + public required init?(coder aDecoder: NSCoder) { super.init(coder: aDecoder) } diff --git a/Charts/Classes/Charts/ChartViewBase.swift b/Charts/Classes/Charts/ChartViewBase.swift index 83583ee32d..7f78511e51 100755 --- a/Charts/Classes/Charts/ChartViewBase.swift +++ b/Charts/Classes/Charts/ChartViewBase.swift @@ -145,7 +145,7 @@ public class ChartViewBase: UIView, ChartAnimatorDelegate initialize() } - public required init(coder aDecoder: NSCoder) + public required init?(coder aDecoder: NSCoder) { super.init(coder: aDecoder) initialize() diff --git a/Charts/Classes/Charts/PieChartView.swift b/Charts/Classes/Charts/PieChartView.swift index 0c47368d9f..ac0de4b3bb 100755 --- a/Charts/Classes/Charts/PieChartView.swift +++ b/Charts/Classes/Charts/PieChartView.swift @@ -31,7 +31,7 @@ public class PieChartView: PieRadarChartViewBase super.init(frame: frame) } - public required init(coder aDecoder: NSCoder) + public required init?(coder aDecoder: NSCoder) { super.init(coder: aDecoder) } diff --git a/Charts/Classes/Charts/PieRadarChartViewBase.swift b/Charts/Classes/Charts/PieRadarChartViewBase.swift index 0974b2c07b..a90d66a17d 100755 --- a/Charts/Classes/Charts/PieRadarChartViewBase.swift +++ b/Charts/Classes/Charts/PieRadarChartViewBase.swift @@ -37,7 +37,7 @@ public class PieRadarChartViewBase: ChartViewBase super.init(frame: frame) } - public required init(coder aDecoder: NSCoder) + public required init?(coder aDecoder: NSCoder) { super.init(coder: aDecoder) } diff --git a/Charts/Classes/Charts/RadarChartView.swift b/Charts/Classes/Charts/RadarChartView.swift index 2282509554..49363e4e93 100644 --- a/Charts/Classes/Charts/RadarChartView.swift +++ b/Charts/Classes/Charts/RadarChartView.swift @@ -51,7 +51,7 @@ public class RadarChartView: PieRadarChartViewBase super.init(frame: frame) } - public required init(coder aDecoder: NSCoder) + public required init?(coder aDecoder: NSCoder) { super.init(coder: aDecoder) }