Utilities for CALayer in OS X and iOS.