Replacing ObjC LAGradientView with Swift version.