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

Error when convert to Swift3 #25

Open
LucasArgate opened this issue Dec 20, 2016 · 1 comment
Open

Error when convert to Swift3 #25

LucasArgate opened this issue Dec 20, 2016 · 1 comment

Comments

@LucasArgate
Copy link

Hello, when i covert it to swift 3 it not work, look the errors, can you help me ?

image

@LucasArgate
Copy link
Author

Hello Guys, News...

i change this function and it builded perfect but works :( look my code:


func createPath(_ points: NSArray) -> UIBezierPath {
        let path = UIBezierPath()
        var point = CGPoint()
        
        var index = 0
        
        index+=1;
        
        CGPoint.init(dictionaryRepresentation: (points[index] as! CFDictionary))
        path.move(to: point)
        
        while index < points.count {
            index+=1;
            CGPoint.init(dictionaryRepresentation: (points[index] as! CFDictionary))
            path.addLine(to: point)
        }
        path.close()
        
        return path
    }

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

1 participant