SwiftQRCode icon indicating copy to clipboard operation
SwiftQRCode copied to clipboard

Error when convert to Swift3

Open LucasArgate opened this issue 9 years ago • 1 comments

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

image

LucasArgate avatar Dec 20 '16 14:12 LucasArgate

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
    }

LucasArgate avatar Dec 20 '16 17:12 LucasArgate