diff --git a/Charts/Classes/Utils/ChartUtils.swift b/Charts/Classes/Utils/ChartUtils.swift index d7789d8fa2..cf60a96a6e 100755 --- a/Charts/Classes/Utils/ChartUtils.swift +++ b/Charts/Classes/Utils/ChartUtils.swift @@ -394,7 +394,7 @@ open class ChartUtils } else { - newArray.append(val as! NSObject) + newArray.append(val! as NSObject) } } return newArray diff --git a/ChartsRealm/Classes/Data/RealmBarDataSet.swift b/ChartsRealm/Classes/Data/RealmBarDataSet.swift index 8b1eea0764..c2040a8d30 100644 --- a/ChartsRealm/Classes/Data/RealmBarDataSet.swift +++ b/ChartsRealm/Classes/Data/RealmBarDataSet.swift @@ -247,7 +247,7 @@ open class RealmBarDataSet: RealmBarLineScatterCandleBubbleDataSet, IBarChartDat // MARK: - NSCopying - open override func copyWithZone(_ zone: NSZone?) -> AnyObject + open override func copyWithZone(_ zone: NSZone?) -> Any { let copy = super.copyWithZone(zone) as! RealmBarDataSet copy._stackSize = _stackSize diff --git a/ChartsRealm/Classes/Data/RealmBubbleDataSet.swift b/ChartsRealm/Classes/Data/RealmBubbleDataSet.swift index 8d9fed1587..e3c6ab59ab 100644 --- a/ChartsRealm/Classes/Data/RealmBubbleDataSet.swift +++ b/ChartsRealm/Classes/Data/RealmBubbleDataSet.swift @@ -174,7 +174,7 @@ open class RealmBubbleDataSet: RealmBarLineScatterCandleBubbleDataSet, IBubbleCh // MARK: - NSCopying - open override func copyWithZone(_ zone: NSZone?) -> AnyObject + open override func copyWithZone(_ zone: NSZone?) -> Any { let copy = super.copyWithZone(zone) as! RealmBubbleDataSet copy._xMin = _xMin diff --git a/ChartsRealm/Classes/Data/RealmLineDataSet.swift b/ChartsRealm/Classes/Data/RealmLineDataSet.swift index 6121c9ebcf..a2b0fd843a 100644 --- a/ChartsRealm/Classes/Data/RealmLineDataSet.swift +++ b/ChartsRealm/Classes/Data/RealmLineDataSet.swift @@ -177,7 +177,7 @@ open class RealmLineDataSet: RealmLineRadarDataSet, ILineChartDataSet // MARK: NSCopying - open override func copyWithZone(_ zone: NSZone?) -> AnyObject + open override func copyWithZone(_ zone: NSZone?) -> Any { let copy = super.copyWithZone(zone) as! RealmLineDataSet copy.circleRadius = circleRadius diff --git a/ChartsRealm/Classes/Data/RealmLineRadarDataSet.swift b/ChartsRealm/Classes/Data/RealmLineRadarDataSet.swift index 1249b85251..cc2729f2bb 100644 --- a/ChartsRealm/Classes/Data/RealmLineRadarDataSet.swift +++ b/ChartsRealm/Classes/Data/RealmLineRadarDataSet.swift @@ -84,7 +84,7 @@ open class RealmLineRadarDataSet: RealmLineScatterCandleRadarDataSet, ILineRadar // MARK: NSCopying - open override func copyWithZone(_ zone: NSZone?) -> AnyObject + open override func copyWithZone(_ zone: NSZone?) -> Any { let copy = super.copyWithZone(zone) as! RealmLineRadarDataSet copy.fillColor = fillColor diff --git a/ChartsRealm/Classes/Data/RealmLineScatterCandleRadarDataSet.swift b/ChartsRealm/Classes/Data/RealmLineScatterCandleRadarDataSet.swift index f5c2e38b55..7bbda69619 100644 --- a/ChartsRealm/Classes/Data/RealmLineScatterCandleRadarDataSet.swift +++ b/ChartsRealm/Classes/Data/RealmLineScatterCandleRadarDataSet.swift @@ -46,7 +46,7 @@ open class RealmLineScatterCandleRadarDataSet: RealmBarLineScatterCandleBubbleDa // MARK: NSCopying - open override func copyWithZone(_ zone: NSZone?) -> AnyObject + open override func copyWithZone(_ zone: NSZone?) -> Any { let copy = super.copyWithZone(zone) as! RealmLineScatterCandleRadarDataSet copy.drawHorizontalHighlightIndicatorEnabled = drawHorizontalHighlightIndicatorEnabled diff --git a/ChartsRealm/Classes/Data/RealmScatterDataSet.swift b/ChartsRealm/Classes/Data/RealmScatterDataSet.swift index 7f8fa55287..6984b4af7c 100644 --- a/ChartsRealm/Classes/Data/RealmScatterDataSet.swift +++ b/ChartsRealm/Classes/Data/RealmScatterDataSet.swift @@ -47,7 +47,7 @@ open class RealmScatterDataSet: RealmLineScatterCandleRadarDataSet, IScatterChar // MARK: NSCopying - open override func copyWithZone(_ zone: NSZone?) -> AnyObject + open override func copyWithZone(_ zone: NSZone?) -> Any { let copy = super.copyWithZone(zone) as! RealmScatterDataSet copy.scatterShapeSize = scatterShapeSize