Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migration to Swift 3.x #1836

Closed
vaibhav-varshaaweblabs opened this issue Nov 16, 2016 · 3 comments
Closed

Migration to Swift 3.x #1836

vaibhav-varshaaweblabs opened this issue Nov 16, 2016 · 3 comments

Comments

@vaibhav-varshaaweblabs
Copy link

vaibhav-varshaaweblabs commented Nov 16, 2016

I'm converting my Swift 2.x code to Swift 3.x. Following is my code snippet for which I'm facing errors.
Please help

@IBOutlet weak var chartView: CombinedChartView!
chartView.delegate = self;
chartView.chartDescription?.text = ""
chartView.noDataTextDescription = "You need to provide data for the chart."

Error on line - chartView.noDataTextDescription

let chartData = CombinedChartData()
chartData.xVals = dates

Error on line - chartData.xVals

@liuxuan30
Copy link
Member

liuxuan30 commented Nov 16, 2016

You shouldn't covert by yourself unless you know what you are dealing with. Just pick up master and time your time to migrate your project to chart 3.0. You can also take the swift 2.3 release + Chart 2.2.5. Just don't spend time on this.

@vaibhav-varshaaweblabs
Copy link
Author

I have used the latest Charts library from pod 'Charts'

@liuxuan30
Copy link
Member

Oh I see. It's your code xVals = ... does not exist anymore. Use the latest APIs and read the release notes! The x axis is redesigned, so the x stuff changed a lot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants