I\'ve got a CGRect, and I\'d like to adjust it with a UIEdgeInsets.
It seems like perhaps there might be a built in function that does this
Say you want the bounds,
but for example less two pixels on the bottom:
let ei = UIEdgeInsetsMake(0, 0, 2, 0) // top-left-bottom-right
let smaller = UIEdgeInsetsInsetRect(bounds, ei)
That's it.
Take two off the bottom:
let newBounds = UIEdgeInsetsInsetRect(bounds, UIEdgeInsetsMake(0, 0, 2, 0))
Cheers