Not sure whether this is directly Pythonista-related, but I'm having some trouble with objc_util. Code that appears to work elsewhere fails in Pythonista, and I don't think I'm doing anything obviously wrong.
I'm trying to implement a progress bar that strokes along a ui.Path. I think I need to have a CGPath inside a CAShapeLayer, then animate the strokeEnd property, and somehow do all this inside ui.
But, no matter what I do, I can't get a CGPath from a ui.Path.
The first thing I tried was this:
import ui
from objc_util import *
a = ui.Path()
a.line_to(10, 0)
a.line_to(10, 10)
a.close()
b = ObjCInstance(a)
print(b.CGPath())
I always get a c_void_p from this. I even get similar results from
from objc_util import *
print(UIBezierPath.new().CGPath())
What's going on here?