Gradient View

One really useful UIView subclass I generally have on all my projects is a simple GradientView. You give it two colors and optionally some location values and it draws a gradient from top to bottom. In this episode we build this so that we can integrate a fade to black effect to overlay on top of the background image.

This is a companion discussion topic for the original entry at https://nsscreencast.com/episodes/474-layout-in-code-gradient-view

Reply testing here. That’s a neat trick.