Drop the Layout Magic
The Podio iOS app contains a lot of custom layout code, animations and whatnot. Basically a lot of places where the frame of a UIView is changed in various ways. I have often found myself writing custom frame calculation code and sprinkling CGRectMakes all over the code. Looking back at it months later, it is almost impossible to decode the original intent of the layout.
To remedy this, I created a small utility class called POViewFrameBuilder. It basically provides a set of helper methods to semantically modify the frame of a UIView, getting rid of all those obscure frame calculations and reducing the amount of code while increasing readability.
So, we decided to open source it to let others use it and provide some feedback. To try it out, check out the Github repo, fire up the demo app and let me know what you think.
POViewFrameBuilder is also available through CocoaPods.