RBGradientSwift Gradient view for swift Grab RBGradientView.swift file to your project. Grab a UIView from object library in storyboard. Change class name to GradientView in identity inspector. Do changes in attributes inspector.