How can I increase the size of a CGRect by a certain percent value? Should I use some form of CGRectInset to do it?
CGRectInset
Example:
Assume I have a CGRect:
let scale = percent / 100 let newRect = oldRect.applying(CGAffineTransform(scaleX: scale, y: scale))
Beware that this approach also will change x and y of rectangle.