diff --git a/Charts/Classes/Charts/BarLineChartViewBase.swift b/Charts/Classes/Charts/BarLineChartViewBase.swift index 6b60920257..dc592ceb59 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 841f7d5d60..c144dedca9 100755 --- a/Charts/Classes/Charts/ChartViewBase.swift +++ b/Charts/Classes/Charts/ChartViewBase.swift @@ -143,7 +143,7 @@ public class ChartViewBase: UIView, ChartAnimatorDelegate initialize() } - public required init?(coder aDecoder: NSCoder) + public required init(coder aDecoder: NSCoder) { super.init(coder: aDecoder) initialize() @@ -828,7 +828,7 @@ public class ChartViewBase: UIView, ChartAnimatorDelegate internal typealias VoidClosureType = () -> () internal var _sizeChangeEventActions = [VoidClosureType]() - override public func observeValueForKeyPath(keyPath: String?, ofObject object: AnyObject?, change: [String: AnyObject]?, context: UnsafeMutablePointer) + public override func observeValueForKeyPath(keyPath: String?, ofObject object: AnyObject?, change: [NSObject : AnyObject]?, context: UnsafeMutablePointer) { if (keyPath == "bounds" || keyPath == "frame") { diff --git a/Charts/Classes/Charts/PieChartView.swift b/Charts/Classes/Charts/PieChartView.swift index f11aa1dac9..502d5a9cec 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 aaba8de186..826ae5827f 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 bbcc0f1d9c..31ddfb6dac 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) }