This recipe we will show how to use CAGradientLayer to add gradients to a custom UIView.