I feel like I spend alot of time manipulating CGRects. Awhile ago I found a set of C functions that simplify several common operations. Namely they allow you to change one value in a CGRect without forst storing it in a temp variale.
Here is an example settings the view‘s frame to the parent‘s frame with the size.origin set to 34.
Compared to the traditional way of doing this it seems a whole lot more readable and make’s your intention very clear to future readers of the code.