Charts: Swift 4

Created on 19 Sep 2017  ·  9Comments  ·  Source: danielgindi/Charts

Hi,

Hi, I have 33 errors for the module Charts, is it going to update this project to Swift 4?

Thanks

Check dependencies:

"The use of Swift 3 @objc inference in Swift 4 mode is deprecated. Please address deprecated @objc inference warnings, test your code with “Use of deprecated Swift 3 @objc inference” logging enabled, and then disable inference by changing the "Swift 3 @objc Inference" build setting to "Default" for the "Charts" target."

Most helpful comment

Hi,

also there is compilation error:
Cannot convert value of type '[String : AnyObject]?' to expected argument type '[NSAttributedStringKey : Any]?'

for example in ChartUtils.swift, line 132... 136... 141... etc. Total 14 issues.

Thanks for update to Swift 4 :)

All 9 comments

Hi,

also there is compilation error:
Cannot convert value of type '[String : AnyObject]?' to expected argument type '[NSAttributedStringKey : Any]?'

for example in ChartUtils.swift, line 132... 136... 141... etc. Total 14 issues.

Thanks for update to Swift 4 :)

please for "The use of Swift 3 @objc inference ....."

this is very simple.......

https://makeapppie.com/2017/09/18/this-old-app-update-to-xcode-9/

I have multiple errors as well.
One of them is "ambigous reference to member 'data' " in ChartDataEntryBase:
if (object! as AnyObject).data !== data && !((object! as AnyObject).data??.isEqual(self.data))!

When will there be a version of Charts for Swift 4?

I just added a new pod to my project and doing pod install triggered the Xcode Swift compiler to interpret the Charts library as Swift 4 and not Swift 3, which it did not do before. So I expect many people to have this problem on Xcode 9 when adding new pods. I have a few errors, one of which I posted, that I would prefer not to handle myself. Thanks

Hi Daniel
Thank you all for the great library.
I am sure you are aware of the lovely Swift 4 issues (18 to be precise) popped out recently. No doubt you are on the case. Just wondering when will we get the updates for your awesome library.
Thanks in advance
chartsissues

I have the same problems

Guys, we get it, no need to bump this issue every 10 minutes...

Check out this link, it clearly explains how to get rid of @objc error
https://youtu.be/T7TyB-R_rOk

swift 4 #2507 has been merged into master. closing.

Was this page helpful?
0 / 5 - 0 ratings