Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ethercrow/uiview-position

UIView geometry helpers
https://github.com/ethercrow/uiview-position

Last synced: 3 months ago
JSON representation

UIView geometry helpers

Awesome Lists containing this project

README

        

UIView+position
===============

This is UIView category that adds properties that make frame geometry-related stuff less tedious.

For example, you can write::

someView.rx += 100;

instead of::

someView.frame = CGRectMake(someView.frame.origin.x+100, someView.frame.origin.y,
someView.frame.size.width, someView.frame.size.height);

This category is based on (Apache licensed) code from http://bynomial.com/blog/?p=24.
Properties changed to even more concise (e.g. frameOrigin -> origin, frameX -> rx)