I have tried to call CGPathMoveToPoint() in Swift using the CGMutablePathRef and a CGPoint as input and NULL/nil instead of the CGAffineTransformation like this
CGPathMoveToPoint(path, nil, point.x as CGFloat, point.y as CGFloat)
However, I always get an error stating the expression cannot be converted to type NilLiteralConvertible. Do you have any idea why this code does not work? What should be used in Swift insted of the nil argument? I tried using CGAffineTransformidentity instead of nil but it doesn't work either. Thanks!