Ich arbeite mit Swift 3. In meinem Code verwende ich Siri Integration in Wallet App.Ich erhalte einen Fehler in dieser App. Ich habe in Google gesucht, aber ich habe keine Lösung dafür gefunden.Wert des Typs 'CGPoint' hat kein Mitglied 'makeWithDictionaryRepresentation' in swift 3
Hier ist mein Code:
func createPath(_ points: NSArray) -> UIBezierPath {
let path = UIBezierPath()
var point = CGPoint()
//CGPointMakeWithDictionaryRepresentation((points[0] as! CFDictionary), &point)
point.makeWithDictionaryRepresentation((points[0] as! CFDictionary)) // In this line I am getting an error
path.move(to: point)
var index = 1
while index < points.count {
//CGPointMakeWithDictionaryRepresentation((points[index] as! CFDictionary), &point)
point.makeWithDictionaryRepresentation((points[index] as! CFDictionary))
path.addLine(to: point)
index = index + 1
}
path.close()
return path
}
Hier ist der Fehler Ich erhalte:
Wert vom Typ 'CGPoint' kein Mitglied
Can 'makeWithDictionaryRepresentation' hat jeder jemand bitte helfen Sie mir, es zu lösen. Vielen Dank im Voraus.
Fehler klar sagt, dass 'CGPoint' hat kein Mitglied wie' makeWithDictionaryRepresentation'. Also wie kann man das einstellen oder anrufen? – Lion
Verweisen [Apple doc] (https://developer.apple.com/reference/coregraphics/cgpoint/1455382-dictionaryrepresentation) – Lion