Just a simple way to add a gradient to the view. Just add GradientBackGround.swift to your project.. to use with a subview you will have to subclass the subview and call the class method