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

ios-charts for swift 2.0 cannot compile on XCode7 beta 5 - self.dynamicType.allocWithZone(zone) issue #287

Closed
iksiphone opened this issue Aug 8, 2015 · 2 comments

Comments

@iksiphone
Copy link

Hi

Thank you for your hard word and fantastic ios-charts.

I noted that the latest ios-charts for swift 2.0 cannot compile on XCode7 beta 5 due to the following issue.
The self.dynamicType.allocWithZone(zone) produce the following error:
'allocWithZone' is unavailable in Swift: use object initializers instead

There are a couple of error occurrences.
1- ChartDataEntry.swift
2- ChartDataSet.swift

// MARK: NSCopying

public func copyWithZone(zone: NSZone) -> AnyObject
{

let copy = self.dynamicType.allocWithZone(zone) as ChartDataSet
-------
--------
return copy

}
I would love finding the trick on my own but.. :-(

Kind Regards,
Patrick

@AJ9
Copy link

AJ9 commented Aug 10, 2015

Great work, please merge!

@danielgindi
Copy link
Collaborator

Merged

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

3 participants