Is it possible to covert CGRect into CGPathRef ? - Objective C

831 views Asked by At

I have a CGRect based on that I want to make CGPathRef.

Is it doable in objective C?

1

There are 1 answers

0
Valentin Shamardin On
let rect = CGRect(x: 1, y: 2, width: 3, height: 4)
let path = CGPath(rect: bounds, transform: nil)