CGPath on iOS, what do I need to do to make it wor...
# kotlin-native
m
CGPath on iOS, what do I need to do to make it work? I can construct a CGMutablePathRef(?) with
Copy code
var fred = CGPathCreateMutable()
although it could create a null (why would it do that? Surely I don't need a context for that first?) Then I'm trying to do something with it, for example "move". It should work as
Copy code
fred.moveToPoint(aPoint)
but AS claims fred has no method by that name. So I thought, after @Sam's suggestion (elsewhere) that perhaps
Copy code
fred.pointed.moveToPoint(aPoint)
might work, but no, the IDE refuses to believe that too. I've had to resort to
Copy code
CGPathMoveToPoint(fred, x, y)
(with x & y as Kotlin doubles), and similar functions. This builds, and even runs, but no paths get built. What am I missing?