Are transparent fills on vector objects possible? i.e. where just the stroke is visible. Or is the only option capturing the background and using that as an image fill?
Yes, just set the fill to nil:
rect.fill = nil
Yes, just set the fill to nil:
rect.fill = nil