Trying to create a CGMutablePath() as such:
CGMutablePath()
let path = CGMutablePath() CGPathMoveToPoint(path, nil, 30, 0)
but the compiler k
I was getting this error when trying to draw inside a CGRect
This solved it for me:
let framePath : CGMutablePath = CGMutablePath() framePath.addRect(frameRect)
I hope this saves you countless hours trying to solve this. :)