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

Swift 3 #1

Open
manugupta9228 opened this issue Feb 13, 2017 · 5 comments
Open

Swift 3 #1

manugupta9228 opened this issue Feb 13, 2017 · 5 comments

Comments

@manugupta9228
Copy link

CubicCurveALgorithm.swift is not compatible with swift 3 syntax

@stoeckley
Copy link

It's a very minor fix if you just use the Xcode syntax conversion feature... it's only a few minor automatic changes.

@petkrein
Copy link

petkrein commented Aug 17, 2017

The Xcode (8.3.3) syntax conversion is not able to fix a line in "CubicCurveAlgorithm.swift":

Line 123:
for var i=count-2; i>=0; i -= 1 {

You have to replace it manually with:
for i in (0 ..< count - 1).reversed() {

@stoeckley
Copy link

That's interesting, I wonder why the earlier versions of syntax conversion worked on all of the lines, but not the version you are using?

@petkrein
Copy link

An swift 3 syntax upgrade for your nice Algorithm would be desireable ;)

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

4 participants
@stoeckley @manugupta9228 @petkrein and others